blob: 81b56cd4261bab227d6d7ff4f3afa3fa5ba406a7 [file]
//@ run-pass
//@ check-run-results
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
//@ ignore-windows-gnu
// Tests whether calling EIIs works with the declaration in the same crate.
#![feature(extern_item_impls)]
#[eii]
fn hello(x: u64);
#[hello]
fn hello_impl(x: u64) {
println!("{x:?}")
}
// what you would write:
fn main() {
// directly
hello_impl(21);
// through the alias
hello(42);
}