]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence_local_ref.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / coherence_local_ref.rs
CommitLineData
c34b1796
AL
1// Test that we are able to introduce a negative constraint that
2// `MyType: !MyTrait` along with other "fundamental" wrappers.
223e47cc 3
dc9dc135 4// check-pass
c34b1796 5// aux-build:coherence_copy_like_lib.rs
223e47cc 6
c34b1796
AL
7extern crate coherence_copy_like_lib as lib;
8
9struct MyType { x: i32 }
10
11// naturally, legal
12impl lib::MyCopy for MyType { }
13
a1dfa0c6 14fn main() { }