diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/impl-trait/coherence-treats-tait-ambig.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/coherence-treats-tait-ambig.stderr b/tests/ui/impl-trait/coherence-treats-tait-ambig.stderr new file mode 100644 index 000000000..7c69c4bfe --- /dev/null +++ b/tests/ui/impl-trait/coherence-treats-tait-ambig.stderr @@ -0,0 +1,13 @@ +error[E0119]: conflicting implementations of trait `Into<T>` for type `Foo` + --> $DIR/coherence-treats-tait-ambig.rs:7:1 + | +LL | impl Into<T> for Foo { + | ^^^^^^^^^^^^^^^^^^^^ + | + = note: conflicting implementation in crate `core`: + - impl<T, U> Into<U> for T + where U: From<T>; + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0119`. |