summaryrefslogtreecommitdiffstats
path: root/tests/ui/internal-lints/query_stability_incorrect.stderr
blob: 3f78b39edd96a3adcddf933de7e810ca03798eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: malformed `rustc_lint_query_instability` attribute input
  --> $DIR/query_stability_incorrect.rs:10:5
   |
LL |     #[rustc_lint_query_instability(a)]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_lint_query_instability]`

error: attribute should be applied to a function definition
  --> $DIR/query_stability_incorrect.rs:5:1
   |
LL | #[rustc_lint_query_instability]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | struct Foo;
   | ----------- not a function definition

error: aborting due to 2 previous errors