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

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

fn main() {
}