]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[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() {}