]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs
Auto merge of #106853 - TimNN:undo-remap, r=oli-obk
[rust.git] / tests / 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() {}