mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 11:37:50 +00:00
18 lines
301 B
Rust
18 lines
301 B
Rust
trait Foo {
|
|
fn err(&self) -> MissingType;
|
|
//~^ ERROR cannot find type `MissingType` in this scope
|
|
}
|
|
|
|
impl Foo for i32 {
|
|
fn err(&self) -> MissingType {
|
|
//~^ ERROR cannot find type `MissingType` in this scope
|
|
0
|
|
}
|
|
}
|
|
|
|
fn coerce(x: &i32) -> &dyn Foo {
|
|
x
|
|
}
|
|
|
|
fn main() {}
|