]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/inter-crate-ambiguity-causes-notes.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / coherence / inter-crate-ambiguity-causes-notes.rs
1 struct S;
2
3 impl From<()> for S {
4     fn from(x: ()) -> Self {
5         S
6     }
7 }
8
9 impl<I> From<I> for S
10 //~^ ERROR conflicting implementations of trait
11 where
12     I: Iterator<Item = ()>,
13 {
14     fn from(x: I) -> Self {
15         S
16     }
17 }
18
19 fn main() {}