blob: 4d509acec79005a7b26a8f544392c99a30b38528 [file] [log] [blame]
error: `#[rustc_lint_diagnostics]` attribute cannot be used on structs
--> $DIR/diagnostics_incorrect.rs:5:1
|
LL | #[rustc_lint_diagnostics]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `#[rustc_lint_diagnostics]` can only be applied to functions
error[E0565]: malformed `rustc_lint_diagnostics` attribute input
--> $DIR/diagnostics_incorrect.rs:10:5
|
LL | #[rustc_lint_diagnostics(a)]
| ^^^^^^^^^^^^^^^^^^^^^^^^---^
| | |
| | didn't expect any arguments here
| help: must be of the form: `#[rustc_lint_diagnostics]`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0565`.