blob: cc1841cc4b2a15996b15f7e016bb4215a36f6b87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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() {}
|