]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/internal-lints/query_stability_incorrect.rs
Rollup merge of #107125 - WaffleLapkin:expect_an_item_in_your_hir_by_the_next_morning...
[rust.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() {}