1 error: malformed `rustc_lint_diagnostics` attribute input
2 --> $DIR/diagnostics_incorrect.rs:10:5
4 LL | #[rustc_lint_diagnostics(a)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_lint_diagnostics]`
7 error: attribute should be applied to a function definition
8 --> $DIR/diagnostics_incorrect.rs:5:1
10 LL | #[rustc_lint_diagnostics]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^
14 | ----------- not a function definition
16 error: aborting due to 2 previous errors