summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/coherence-overlap-trait-alias.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/coherence/coherence-overlap-trait-alias.stderr')
-rw-r--r--src/test/ui/coherence/coherence-overlap-trait-alias.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/coherence/coherence-overlap-trait-alias.stderr b/src/test/ui/coherence/coherence-overlap-trait-alias.stderr
new file mode 100644
index 000000000..e324c1e79
--- /dev/null
+++ b/src/test/ui/coherence/coherence-overlap-trait-alias.stderr
@@ -0,0 +1,17 @@
+error[E0283]: type annotations needed: cannot satisfy `u32: C`
+ --> $DIR/coherence-overlap-trait-alias.rs:15:6
+ |
+LL | impl C for u32 {}
+ | ^
+ |
+note: multiple `impl`s satisfying `u32: C` found
+ --> $DIR/coherence-overlap-trait-alias.rs:14:1
+ |
+LL | impl<T: AB> C for T {}
+ | ^^^^^^^^^^^^^^^^^^^
+LL | impl C for u32 {}
+ | ^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0283`.