diff options
Diffstat (limited to 'tests/ui/coherence/coherence-overlap-trait-alias.stderr')
-rw-r--r-- | tests/ui/coherence/coherence-overlap-trait-alias.stderr | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/coherence/coherence-overlap-trait-alias.stderr b/tests/ui/coherence/coherence-overlap-trait-alias.stderr new file mode 100644 index 000000000..668b8319b --- /dev/null +++ b/tests/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:12 + | +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`. |