2021-07-29 12:00:41 -05:00
|
|
|
error: crate-level attribute should be in the root module
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:7:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #![crate_type = "bin"]
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:4:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_attributes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-07-19 00:05:23 +02:00
|
|
|
error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
2021-07-29 12:00:41 -05:00
|
|
|
--> $DIR/lint-misplaced-attr.rs:10:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[crate_type = "bin"] fn main() {}
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-07-29 12:00:41 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|