summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-with_negative_coherence.rs
blob: d1d0a6a90b830ba97d381fca5e6a2ad846b68083 (plain)
1
2
3
4
5
6
7
8
trait Foo { }

impl<T: std::ops::DerefMut> Foo for T { }

impl<T> Foo for &T { }
//~^ ERROR conflicting implementations of trait `Foo` for type `&_` [E0119]

fn main() { }