summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr')
-rw-r--r--src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr b/src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr
new file mode 100644
index 000000000..d4c201b5d
--- /dev/null
+++ b/src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr
@@ -0,0 +1,12 @@
+error[E0119]: conflicting implementations of trait `Foo` for type `&_`
+ --> $DIR/feature-gate-with_negative_coherence.rs:5:1
+ |
+LL | impl<T: std::ops::DerefMut> Foo for T { }
+ | ------------------------------------- first implementation here
+LL |
+LL | impl<T> Foo for &T { }
+ | ^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0119`.