]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized-locals/by-value-trait-object-safety.stderr
Point at `Sized` requirements
[rust.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