1 #![feature(extern_types)]
2 #![feature(type_alias_impl_trait)]
4 #![warn(unused_attributes)]
7 #[inline] //~ WARN `#[inline]` is ignored on constants
8 //~^ WARN this was previously accepted
11 #[inline] //~ ERROR attribute should be applied to function or closure
18 #[inline] //~ WARN `#[inline]` is ignored on constants
19 //~^ WARN this was previously accepted
22 #[inline] //~ ERROR attribute should be applied to function or closure
25 #[inline] //~ ERROR attribute should be applied to function or closure
26 type U = impl Trait; //~ ERROR could not find defining uses
30 #[inline] //~ ERROR attribute should be applied to function or closure
33 #[inline] //~ ERROR attribute should be applied to function or closure