//@ check-pass // test for #119950 //@ compile-flags: --crate-type lib #![allow(internal_features)] #![feature(allow_internal_unstable)] //@ aux-build:specialization-trait.rs extern crate specialization_trait; #[allow_internal_unstable(min_specialization)] macro_rules! test { () => { struct T(U); trait Tr {} impl Tr for T {} impl Tr for T {} impl specialization_trait::SpecTrait for T { fn method(&self) {} } }; } test! {}