We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c371bb commit cf55db2Copy full SHA for cf55db2
src/librustc_typeck/diagnostics.rs
@@ -1264,7 +1264,7 @@ impl From<Foo> for i32 { // or you use a type from your crate as
1264
1265
E0119: r##"
1266
There are conflicting trait implementations for the same type.
1267
-Erroneous code example:
+Example of erroneous code:
1268
1269
```
1270
trait MyTrait {
@@ -1285,7 +1285,10 @@ impl MyTrait for Foo { // error: conflicting implementations for trait
1285
}
1286
1287
1288
-When you write:
+When looking for the implementation for the trait, the compiler finds
1289
+both the `impl<T> MyTrait for T` where T is all types and the `impl
1290
+MyTrait for Foo`. Since a trait cannot be implemented multiple times,
1291
+this is an error. So, when you write:
1292
1293
1294
impl<T> MyTrait for T {
0 commit comments