]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs
Rollup merge of #98391 - joboet:sgx_parker, r=m-ou-se
[rust.git] / src / test / ui / coherence / coherence-overlap-negate-not-use-feature-gate.rs
1 use std::ops::DerefMut;
2
3 trait Foo {}
4 impl<T: DerefMut> Foo for T {}
5 impl<U> Foo for &U {}
6 //~^ ERROR: conflicting implementations of trait `Foo` for type `&_` [E0119]
7
8 fn main() {}