fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
677 B20 linesraw
1warning: 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   |
4LL | #![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
10error: the `foo` method cannot be invoked on a trait object
11  --> $DIR/by-value-trait-object-safety.rs:20:7
12   |
13LL |         Self: Sized;
14   |               ----- this has a `Sized` requirement
15...
16LL |     x.foo();
17   |       ^^^
18
19error: aborting due to previous error; 1 warning emitted
20