summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0038.rs
blob: b2226803da7fa128dfc06ce492a1aebe577dd66b (plain)
1
2
3
4
5
6
7
8
9
10
11
trait Trait {
    fn foo(&self) -> Self;
}

fn call_foo(x: Box<Trait>) {
    //~^ ERROR E0038
    let y = x.foo();
}

fn main() {
}