1 #![feature(rustc_attrs)]
3 #[rustc_must_implement_one_of(a, b)]
4 //~^ Function not found in this trait
5 //~| Function not found in this trait
8 #[rustc_must_implement_one_of(a, b)]
9 //~^ Function not found in this trait
14 #[rustc_must_implement_one_of(a)]
15 //~^ the `#[rustc_must_implement_one_of]` attribute must be used with at least 2 args
20 #[rustc_must_implement_one_of]
21 //~^ malformed `rustc_must_implement_one_of` attribute input
24 #[rustc_must_implement_one_of(A, B)]
26 const A: u8 = 1; //~ Not a function
28 type B; //~ Not a function
31 #[rustc_must_implement_one_of(a, b)]
33 fn a(); //~ This function doesn't have a default implementation
35 fn b(); //~ This function doesn't have a default implementation
38 #[rustc_must_implement_one_of(abc, xyz)]
39 //~^ attribute should be applied to a trait
42 #[rustc_must_implement_one_of(abc, xyz)]
43 //~^ attribute should be applied to a trait