rust/tests/ui/feature-gates/feature-gate-with_negative_coherence.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
172 B
Rust
Raw Normal View History

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() { }