rust/tests/ui/eii/default/call_impl.rs
Jana Dönszelmann 065e4c1c8a
ignore windows
2025-12-13 22:49:45 +01:00

19 lines
577 B
Rust

//@ no-prefer-dynamic
//@ aux-build: decl_with_default.rs
//@ aux-build: impl1.rs
//@ run-pass
//@ check-run-results
//@ ignore-backends: gcc
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
//@ ignore-windows
// 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.
#![feature(extern_item_impls)]
extern crate decl_with_default;
extern crate impl1;
fn main() {
decl_with_default::decl1(10);
}