summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-misplaced-attr.stderr
blob: abaf4620e6f8fe171083c6dc42ee8e46f4b44f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: crate-level attribute should be in the root module
  --> $DIR/lint-misplaced-attr.rs:7:5
   |
LL |     #![crate_type = "bin"]
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/lint-misplaced-attr.rs:4:9
   |
LL | #![deny(unused_attributes)]
   |         ^^^^^^^^^^^^^^^^^

error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
  --> $DIR/lint-misplaced-attr.rs:10:1
   |
LL | #[crate_type = "bin"] fn main() {}
   | ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors