blob: 7f7d5d0163cfb79f69c2ad00f2cb3e4011109c6a [file]
//@ revisions: rlib dylib-impl
//@[dylib-impl] needs-crate-type: dylib
//@ aux-build: decl_with_default.rs
//@ aux-build: impl1.rs
//@ run-pass
//@ check-run-results
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
//@ ignore-windows-gnu
// Tests EIIs with default implementations.
// When an explicit implementation is given in one dependency, and the declaration is in another,
// the explicit implementation is preferred.
extern crate decl_with_default;
extern crate impl1;
fn main() {
decl_with_default::decl1(10);
}