rust/src/test/ui/lint/lint-misplaced-attr.stderr

33 lines
933 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
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