summaryrefslogtreecommitdiffstats
path: root/tests/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs
blob: a067736f63a248d5167006c42bc53dc6efcafc1f (plain)
1
2
3
4
5
6
7
8
use std::ops::DerefMut;

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

fn main() {}