fork/rust

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

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

master
599 B18 linesraw
1error: the `function` method cannot be invoked on `&dyn MutTrait`
2  --> $DIR/mutability-mismatch.rs:26:33
3   |
4LL |     (&MutType as &dyn MutTrait).function();
5   |                                 ^^^^^^^^
6   |
7   = help: you need `&mut dyn MutTrait` instead of `&dyn MutTrait`
8
9error: the `function` method cannot be invoked on `&mut dyn Trait`
10  --> $DIR/mutability-mismatch.rs:29:35
11   |
12LL |     (&mut Type as &mut dyn Trait).function();
13   |                                   ^^^^^^^^
14   |
15   = help: you need `&dyn Trait` instead of `&mut dyn Trait`
16
17error: aborting due to 2 previous errors
18