]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-projection-conflict-orphan.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / coherence / coherence-projection-conflict-orphan.stderr
1 error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`:
2   --> $DIR/coherence-projection-conflict-orphan.rs:26:1
3    |
4 LL | impl Foo<i32> for i32 { }
5    | --------------------- first implementation here
6 LL | 
7 LL | impl<A:Iterator> Foo<A::Item> for A { }  //~ ERROR E0119
8    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
9    |
10    = note: upstream crates may add new impl of trait `std::iter::Iterator` for type `i32` in future versions
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0119`.