]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0038.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0038.rs
1 trait Trait {
2     fn foo(&self) -> Self;
3 }
4
5 fn call_foo(x: Box<Trait>) {
6     //~^ ERROR E0038
7     let y = x.foo();
8 }
9
10 fn main() {
11 }