blob: 17f29a6ba79ed4a0b6060e29f095e9aeaab53fef [file] [log] [blame]
error: unused attribute
--> $DIR/lint-misplaced-attr.rs:17:5
|
LL | #![crate_type = "bin"] //~ ERROR unused attribute
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-misplaced-attr.rs:14:9
|
LL | #![deny(unused_attributes)]
| ^^^^^^^^^^^^^^^^^
error: crate-level attribute should be in the root module
--> $DIR/lint-misplaced-attr.rs:17:5
|
LL | #![crate_type = "bin"] //~ ERROR unused attribute
| ^^^^^^^^^^^^^^^^^^^^^^
error: unused attribute
--> $DIR/lint-misplaced-attr.rs:21:1
|
LL | #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute
| ^^^^^^^^^^^^^^^^^^^^^
error: crate-level attribute should be an inner attribute: add an exclamation mark: #![foo]
--> $DIR/lint-misplaced-attr.rs:21:1
|
LL | #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute
| ^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 4 previous errors