]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/lint-misplaced-attr.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / lint / lint-misplaced-attr.stderr
1 error: crate-level attribute should be in the root module
2 --> $DIR/lint-misplaced-attr.rs:7:5
3 |
4 LL | #![crate_type = "bin"]
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 note: the lint level is defined here
8 --> $DIR/lint-misplaced-attr.rs:4:9
9 |
10 LL | #![deny(unused_attributes)]
11 | ^^^^^^^^^^^^^^^^^
12
13 error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
14 --> $DIR/lint-misplaced-attr.rs:10:1
15 |
16 LL | #[crate_type = "bin"] fn main() {}
17 | ^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20