]> git.proxmox.com Git - rustc.git/blob - src/test/ui-fulldeps/internal-lints/diagnostics_incorrect.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / 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
8 --> $DIR/diagnostics_incorrect.rs:5:1
9 |
10 LL | #[rustc_lint_diagnostics]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^
12 LL |
13 LL | struct Foo;
14 | ----------- not a function
15
16 error: aborting due to 2 previous errors
17