]> git.proxmox.com Git - rustc.git/blob - src/test/ui/unsized-locals/by-value-trait-object-safety.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / unsized-locals / by-value-trait-object-safety.stderr
1 error: the `foo` method cannot be invoked on a trait object
2 --> $DIR/by-value-trait-object-safety.rs:18:7
3 |
4 LL | fn foo(self) -> String where Self: Sized;
5 | ----- this has a `Sized` requirement
6 ...
7 LL | x.foo();
8 | ^^^
9
10 error: aborting due to previous error
11