]> git.proxmox.com Git - rustc.git/blob - tests/ui-fulldeps/internal-lints/query_stability_incorrect.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui-fulldeps / internal-lints / query_stability_incorrect.rs
1 // compile-flags: -Z unstable-options
2
3 #![feature(rustc_attrs)]
4
5 #[rustc_lint_query_instability]
6 //~^ ERROR attribute should be applied to a function
7 struct Foo;
8
9 impl Foo {
10 #[rustc_lint_query_instability(a)]
11 //~^ ERROR malformed `rustc_lint_query_instability`
12 fn bar() {}
13 }
14
15 fn main() {}