mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
17 lines
323 B
Rust
17 lines
323 B
Rust
struct ErrorKind;
|
|
struct Error(ErrorKind);
|
|
|
|
impl From<nope::Thing> for Error { //~ ERROR failed to resolve
|
|
fn from(_: nope::Thing) -> Self { //~ ERROR failed to resolve
|
|
unimplemented!()
|
|
}
|
|
}
|
|
|
|
impl From<ErrorKind> for Error {
|
|
fn from(_: ErrorKind) -> Self {
|
|
unimplemented!()
|
|
}
|
|
}
|
|
|
|
fn main() {}
|