1 // Test that we are able to introduce a negative constraint that
2 // `MyType: !MyTrait` along with other "fundamental" wrappers.
5 // aux-build:coherence_copy_like_lib.rs
7 extern crate coherence_copy_like_lib as lib;
9 struct MyType { x: i32 }
11 // These are all legal because they are all fundamental types:
13 impl lib::MyCopy for MyType { }
14 impl<'a> lib::MyCopy for &'a MyType { }
15 impl<'a> lib::MyCopy for &'a Box<MyType> { }
16 impl lib::MyCopy for Box<MyType> { }
17 impl lib::MyCopy for lib::MyFundamentalStruct<MyType> { }
18 impl lib::MyCopy for lib::MyFundamentalStruct<Box<MyType>> { }