rust/src/test/ui/lint/lint-malformed.stderr

16 lines
491 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0452]: malformed lint attribute
2018-12-25 15:56:47 +00:00
--> $DIR/lint-malformed.rs:2:10
2018-08-08 12:28:26 +00:00
|
LL | #![allow(bar = "baz")] //~ ERROR malformed lint attribute
| ^^^^^^^^^^^
error: attribute must be of the form `#[deny(lint1, lint2, ..., /*opt*/ reason = "...")]`
--> $DIR/lint-malformed.rs:1:1
|
LL | #![deny = "foo"] //~ ERROR attribute must be of the form
| ^^^^^^^^^^^^^^^^
2018-08-08 12:28:26 +00:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0452`.