| error: `#[rustc_lint_query_instability]` attribute cannot be used on structs |
| --> $DIR/query_stability_incorrect.rs:5:1 |
| | |
| LL | #[rustc_lint_query_instability] |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: `#[rustc_lint_query_instability]` can only be applied to functions |
| |
| error[E0565]: malformed `rustc_lint_query_instability` attribute input |
| --> $DIR/query_stability_incorrect.rs:10:5 |
| | |
| LL | #[rustc_lint_query_instability(a)] |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---^ |
| | | | |
| | | didn't expect any arguments here |
| | help: must be of the form: `#[rustc_lint_query_instability]` |
| |
| error: aborting due to 2 previous errors |
| |
| For more information about this error, try `rustc --explain E0565`. |