fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
322 B11 linesraw
1error: the `foo` method cannot be invoked on a trait object
2  --> $DIR/by-value-trait-object-safety.rs:18:7
3   |
4LL |     fn foo(self) -> String where Self: Sized;
5   |                                        ----- this has a `Sized` requirement
6...
7LL |     x.foo();
8   |       ^^^
9
10error: aborting due to previous error
11