fork/rust

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

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

master
606 B20 linesraw
1error: the `function` method cannot be invoked on a trait object
2  --> $DIR/regular.rs:28:41
3   |
4LL |         Self: Sized;
5   |               ----- this has a `Sized` requirement
6...
7LL |     (&mut MutType as &mut dyn MutTrait).function();
8   |                                         ^^^^^^^^
9
10error: the `function` method cannot be invoked on a trait object
11  --> $DIR/regular.rs:30:27
12   |
13LL |         Self: Sized;
14   |               ----- this has a `Sized` requirement
15...
16LL |     (&Type as &dyn Trait).function();
17   |                           ^^^^^^^^
18
19error: aborting due to 2 previous errors
20