about summary refs log tree commit diff
path: root/tests/ui/lint/lint-misplaced-attr.stderr
blob: bcfda1700800e78363a8e3235f2b2d7f89ba7f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
  --> $DIR/lint-misplaced-attr.rs:10:1
   |
LL | #[crate_type = "bin"] fn main() {}
   | ^^^^^^^^^^^^^^^^^^^^^
   |
help: add a `!`
   |
LL | #![crate_type = "bin"] fn main() {}
   |  +

error: aborting due to 2 previous errors