Files
rust/tests/ui/eii/multiple_decls.rs
T
2025-12-12 11:32:35 +01:00

18 lines
294 B
Rust

// 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);
}