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
4 LL | #![feature(unsized_locals)]
7 = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
8 = note: `#[warn(incomplete_features)]` on by default
10 error: the `foo` method cannot be invoked on a trait object
11 --> $DIR/by-value-trait-object-safety.rs:20:7
14 | ----- this has a `Sized` requirement
19 error: aborting due to previous error; 1 warning emitted