1 #![feature(extern_types)]
2 #![feature(no_coverage)]
3 #![feature(type_alias_impl_trait)]
4 #![warn(unused_attributes)]
6 //~^ WARN: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly
9 //~^ WARN: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly
11 #[no_coverage] //~ ERROR `#[no_coverage]` must be applied to coverable code
14 #[no_coverage] //~ ERROR `#[no_coverage]` must be applied to coverable code
21 //~^ WARN: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly
25 #[no_coverage] //~ ERROR `#[no_coverage]` must be applied to coverable code
28 #[no_coverage] //~ ERROR `#[no_coverage]` must be applied to coverable code
29 type U = impl Trait; //~ ERROR unconstrained opaque type
33 #[no_coverage] //~ ERROR `#[no_coverage]` must be applied to coverable code
36 #[no_coverage] //~ ERROR `#[no_coverage]` must be applied to coverable code
43 //~^ WARN `#[no_coverage]` may only be applied to function definitions
48 //~^ WARN `#[no_coverage]` may only be applied to function definitions
53 //~^ WARN `#[no_coverage]` may only be applied to function definitions