]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
c34b1796 AL |
3 | // Test that we are able to introduce a negative constraint that |
4 | // `MyType: !MyTrait` along with other "fundamental" wrappers. | |
223e47cc | 5 | |
c34b1796 | 6 | // aux-build:coherence_copy_like_lib.rs |
1a4d82fc | 7 | |
c34b1796 AL |
8 | extern crate coherence_copy_like_lib as lib; |
9 | ||
c34b1796 AL |
10 | struct MyType { x: i32 } |
11 | ||
9346a6ac | 12 | trait MyTrait { } |
c34b1796 AL |
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> { } | |
223e47cc LB |
18 | |
19 | fn main() { } |