1 // Test that we are able to introduce a negative constraint that
2 // `MyType: !MyTrait` along with other "fundamental" wrappers.
4 // aux-build:coherence_copy_like_lib.rs
7 extern crate coherence_copy_like_lib as lib;
9 struct MyType { x: i32 }
11 trait MyTrait { fn foo() {} }
13 impl<T: lib::MyCopy> MyTrait for T { }
15 // Tuples are not fundamental.
16 impl MyTrait for lib::MyFundamentalStruct<(MyType,)> { }