diff options
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-with_negative_coherence.rs')
-rw-r--r-- | src/test/ui/feature-gates/feature-gate-with_negative_coherence.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-with_negative_coherence.rs b/src/test/ui/feature-gates/feature-gate-with_negative_coherence.rs new file mode 100644 index 000000000..d1d0a6a90 --- /dev/null +++ b/src/test/ui/feature-gates/feature-gate-with_negative_coherence.rs @@ -0,0 +1,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() { } |