rust/tests/ui/internal-lints/diagnostics_incorrect.stderr
2025-12-18 23:36:26 +01:00

20 lines
719 B
Text

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