rust/src/test/ui/lint/lint-malformed.stderr
2019-01-13 14:17:19 +03:00

16 lines
491 B
Plaintext

error[E0452]: malformed lint attribute
--> $DIR/lint-malformed.rs:2:10
|
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
| ^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0452`.