blob: baf36ff4f5a0ab10a625101a23df8e8f62358816 [file] [log] [blame]
//@ run-pass
//@ check-run-results
//@ ignore-backends: gcc
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
//@ ignore-windows
#![feature(extern_item_impls)]
pub mod a {
#[eii(foo)]
pub fn foo();
}
pub mod b {
#[eii(foo)]
pub fn foo();
}
#[a::foo]
fn a_foo_impl() {
println!("foo1");
}
#[b::foo]
fn b_foo_impl() {
println!("foo2");
}
fn main() {
a::foo();
b::foo();
}