2022-06-10 09:50:06 -05:00
|
|
|
error: malformed `rustc_lint_diagnostics` attribute input
|
|
|
|
--> $DIR/diagnostics_incorrect.rs:10:5
|
|
|
|
|
|
|
|
|
LL | #[rustc_lint_diagnostics(a)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_lint_diagnostics]`
|
|
|
|
|
2022-07-19 04:00:16 -05:00
|
|
|
error: attribute should be applied to a function definition
|
2022-06-10 09:50:06 -05:00
|
|
|
--> $DIR/diagnostics_incorrect.rs:5:1
|
|
|
|
|
|
|
|
|
LL | #[rustc_lint_diagnostics]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL |
|
|
|
|
LL | struct Foo;
|
2022-07-19 04:00:16 -05:00
|
|
|
| ----------- not a function definition
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|