2020-10-16 17:37:54 -05:00
|
|
|
warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
|
|
--> $DIR/by-value-trait-object-safety.rs:1:12
|
|
|
|
|
|
|
|
|
LL | #![feature(unsized_locals)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
2020-10-16 17:37:54 -05:00
|
|
|
|
2018-10-24 08:10:17 -05:00
|
|
|
error: the `foo` method cannot be invoked on a trait object
|
2020-10-16 17:37:54 -05:00
|
|
|
--> $DIR/by-value-trait-object-safety.rs:20:7
|
2018-10-24 08:10:17 -05:00
|
|
|
|
|
2020-10-16 17:37:54 -05:00
|
|
|
LL | Self: Sized;
|
|
|
|
| ----- this has a `Sized` requirement
|
2020-01-30 22:12:46 -06:00
|
|
|
...
|
2018-10-24 08:10:17 -05:00
|
|
|
LL | x.foo();
|
|
|
|
| ^^^
|
|
|
|
|
2020-10-16 17:37:54 -05:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2018-10-24 08:10:17 -05:00
|
|
|
|