]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-misplaced-attr.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-misplaced-attr.stderr
1 error: unused attribute
2   --> $DIR/lint-misplaced-attr.rs:17:5
3    |
4 LL |     #![crate_type = "bin"] //~ ERROR unused attribute
5    |     ^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/lint-misplaced-attr.rs:14:9
9    |
10 LL | #![deny(unused_attributes)]
11    |         ^^^^^^^^^^^^^^^^^
12
13 error: crate-level attribute should be in the root module
14   --> $DIR/lint-misplaced-attr.rs:17:5
15    |
16 LL |     #![crate_type = "bin"] //~ ERROR unused attribute
17    |     ^^^^^^^^^^^^^^^^^^^^^^
18
19 error: unused attribute
20   --> $DIR/lint-misplaced-attr.rs:21:1
21    |
22 LL | #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute
23    | ^^^^^^^^^^^^^^^^^^^^^
24
25 error: crate-level attribute should be an inner attribute: add an exclamation mark: #![foo]
26   --> $DIR/lint-misplaced-attr.rs:21:1
27    |
28 LL | #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute
29    | ^^^^^^^^^^^^^^^^^^^^^
30
31 error: aborting due to 4 previous errors
32