mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
2ffb0de8cf
They pass fine. Only tests that required `extern crate rustc_*` or were marked `ignore-stage1` have been keep in fulldeps.
18 lines
511 B
Plaintext
18 lines
511 B
Plaintext
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]`
|
|
|
|
error: attribute should be applied to a function definition
|
|
--> $DIR/diagnostics_incorrect.rs:5:1
|
|
|
|
|
LL | #[rustc_lint_diagnostics]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | struct Foo;
|
|
| ----------- not a function definition
|
|
|
|
error: aborting due to 2 previous errors
|
|
|