]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/conflicting-impl-with-err.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / coherence / conflicting-impl-with-err.rs
1 struct ErrorKind;
2 struct Error(ErrorKind);
3
4 impl From<nope::Thing> for Error { //~ ERROR failed to resolve
5     fn from(_: nope::Thing) -> Self { //~ ERROR failed to resolve
6         unimplemented!()
7     }
8 }
9
10 impl From<ErrorKind> for Error {
11     fn from(_: ErrorKind) -> Self {
12         unimplemented!()
13     }
14 }
15
16 fn main() {}