]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/internal-lints/query_stability_incorrect.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui-fulldeps / internal-lints / query_stability_incorrect.stderr
1 error: malformed `rustc_lint_query_instability` attribute input
2   --> $DIR/query_stability_incorrect.rs:10:5
3    |
4 LL |     #[rustc_lint_query_instability(a)]
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_lint_query_instability]`
6
7 error: attribute should be applied to a function definition
8   --> $DIR/query_stability_incorrect.rs:5:1
9    |
10 LL | #[rustc_lint_query_instability]
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 LL |
13 LL | struct Foo;
14    | ----------- not a function definition
15
16 error: aborting due to 2 previous errors
17