1 error: unused attribute
2 --> $DIR/lint-misplaced-attr.rs:7:5
4 LL | #![crate_type = "bin"]
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/lint-misplaced-attr.rs:4:9
10 LL | #![deny(unused_attributes)]
13 error: crate-level attribute should be in the root module
14 --> $DIR/lint-misplaced-attr.rs:7:5
16 LL | #![crate_type = "bin"]
17 | ^^^^^^^^^^^^^^^^^^^^^^
19 error: unused attribute
20 --> $DIR/lint-misplaced-attr.rs:11:1
22 LL | #[crate_type = "bin"] fn main() {}
23 | ^^^^^^^^^^^^^^^^^^^^^
25 error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
26 --> $DIR/lint-misplaced-attr.rs:11:1
28 LL | #[crate_type = "bin"] fn main() {}
29 | ^^^^^^^^^^^^^^^^^^^^^
31 error: aborting due to 4 previous errors