]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/conflicting-impl-with-err.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[rust.git] / src / test / 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() {}