2015-03-30 16:49:30 -05:00
|
|
|
// Test that we are able to introduce a negative constraint that
|
|
|
|
// `MyType: !MyTrait` along with other "fundamental" wrappers.
|
|
|
|
|
2019-06-12 10:18:32 -05:00
|
|
|
// check-pass
|
2015-03-30 16:49:30 -05:00
|
|
|
// aux-build:coherence_copy_like_lib.rs
|
|
|
|
|
|
|
|
extern crate coherence_copy_like_lib as lib;
|
|
|
|
|
|
|
|
struct MyType { x: i32 }
|
|
|
|
|
|
|
|
// naturally, legal
|
|
|
|
impl lib::MyCopy for MyType { }
|
|
|
|
|
2018-10-31 07:08:01 -05:00
|
|
|
fn main() { }
|