blob: f7646630cab4b154bb1144294d9270fdc58da736 [file] [log] [blame] [edit]
// Tests whether only one EII attribute cane be applied to a signature.
#![feature(extern_item_impls)]
#[eii(a)]
#[eii(b)]
//~^ ERROR `#[eii]` can only be specified once
fn a(x: u64);
#[a]
fn implementation(x: u64) {
println!("{x:?}")
}
// what you would write:
fn main() {
a(42);
}