| 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`. |