fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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