3 // Test that we are able to introduce a negative constraint that
4 // `MyType: !MyTrait` along with other "fundamental" wrappers.
6 // aux-build:coherence_copy_like_lib.rs
8 extern crate coherence_copy_like_lib as lib;
10 struct MyType { x: i32 }
13 impl<T: lib::MyCopy> MyTrait for T { }
14 impl MyTrait for MyType { }
15 impl<'a> MyTrait for &'a MyType { }
16 impl MyTrait for Box<MyType> { }
17 impl<'a> MyTrait for &'a Box<MyType> { }