fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
511 B17 linesraw
1error: malformed `rustc_lint_diagnostics` attribute input
2  --> $DIR/diagnostics_incorrect.rs:10:5
3   |
4LL |     #[rustc_lint_diagnostics(a)]
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_lint_diagnostics]`
6
7error: attribute should be applied to a function definition
8  --> $DIR/diagnostics_incorrect.rs:5:1
9   |
10LL | #[rustc_lint_diagnostics]
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^
12LL |
13LL | struct Foo;
14   | ----------- not a function definition
15
16error: aborting due to 2 previous errors
17