]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/internal-lints/diagnostics_incorrect.stderr
Auto merge of #107000 - GuillaumeGomez:fix-items-in-doc-hidden-block, r=notriddle...
[rust.git] / tests / ui-fulldeps / internal-lints / diagnostics_incorrect.stderr
1 error: malformed `rustc_lint_diagnostics` attribute input
2   --> $DIR/diagnostics_incorrect.rs:10:5
3    |
4 LL |     #[rustc_lint_diagnostics(a)]
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_lint_diagnostics]`
6
7 error: attribute should be applied to a function definition
8   --> $DIR/diagnostics_incorrect.rs:5:1
9    |
10 LL | #[rustc_lint_diagnostics]
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^
12 LL |
13 LL | struct Foo;
14    | ----------- not a function definition
15
16 error: aborting due to 2 previous errors
17