]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/coherence_local_ref.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / coherence / coherence_local_ref.rs
1 // Test that we are able to introduce a negative constraint that
2 // `MyType: !MyTrait` along with other "fundamental" wrappers.
3
4 // check-pass
5 // aux-build:coherence_copy_like_lib.rs
6
7 extern crate coherence_copy_like_lib as lib;
8
9 struct MyType { x: i32 }
10
11 // naturally, legal
12 impl lib::MyCopy for MyType { }
13
14 fn main() { }