]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/by-value-trait-object-safety.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / unsized-locals / by-value-trait-object-safety.stderr
1 warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/by-value-trait-object-safety.rs:1:12
3    |
4 LL | #![feature(unsized_locals)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
8    = note: `#[warn(incomplete_features)]` on by default
9
10 error: the `foo` method cannot be invoked on a trait object
11   --> $DIR/by-value-trait-object-safety.rs:20:7
12    |
13 LL |         Self: Sized;
14    |               ----- this has a `Sized` requirement
15 ...
16 LL |     x.foo();
17    |       ^^^
18
19 error: aborting due to previous error; 1 warning emitted
20