]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-negative-impls-copy-bad.rs
Rollup merge of #101975 - chenyukang:fix-101749, r=compiler-errors
[rust.git] / src / test / ui / coherence / coherence-negative-impls-copy-bad.rs
1 #![feature(negative_impls)]
2 #![crate_type = "lib"]
3
4 impl !Copy for str {}
5 //~^ ERROR only traits defined in the current crate can be implemented
6
7 impl !Copy for fn() {}
8 //~^ ERROR only traits defined in the current crate can be implemented
9
10 impl !Copy for () {}
11 //~^ ERROR only traits defined in the current crate can be implemented