]>
Commit | Line | Data |
---|---|---|
487cf647 | 1 | error[E0119]: conflicting implementations of trait `From<()>` for type `S` |
781aab86 | 2 | --> $DIR/inter-crate-ambiguity-causes-notes.rs:12:1 |
064997fb | 3 | | |
ed00b5ec FG |
4 | LL | impl From<()> for S { |
5 | | ------------------- first implementation here | |
064997fb | 6 | ... |
ed00b5ec FG |
7 | LL | / impl<I> From<I> for S |
8 | LL | | | |
9 | LL | | where | |
10 | LL | | I: Iterator<Item = ()>, | |
11 | | |___________________________^ conflicting implementation for `S` | |
064997fb FG |
12 | | |
13 | = note: upstream crates may add a new impl of trait `std::iter::Iterator` for type `()` in future versions | |
14 | ||
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0119`. |