2018-08-08 07:28:26 -05:00
|
|
|
error: unused attribute
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:7:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![crate_type = "bin"] //~ ERROR unused attribute
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:4:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_attributes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: crate-level attribute should be in the root module
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:7:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![crate_type = "bin"] //~ ERROR unused attribute
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused attribute
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:11:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: crate-level attribute should be an inner attribute: add an exclamation mark: #![foo]
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:11:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|