Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
136 B
Rust
Raw Normal View History

2016-05-19 14:00:43 +02:00
trait Trait {
fn foo(&self) -> Self;
}
2019-05-28 14:46:13 -04:00
fn call_foo(x: Box<dyn Trait>) {
2016-08-08 18:54:16 -04:00
//~^ ERROR E0038
2016-05-19 14:00:43 +02:00
let y = x.foo();
}
fn main() {
}