fork/rust

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

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

master
764 B25 linesraw
1error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference
2  --> $DIR/issue-38147-2.rs:9:9
3   |
4LL |         self.s.push('x');
5   |         ^^^^^^ cannot borrow as mutable
6   |
7help: consider changing this to be mutable
8   |
9LL |     s: &'a mut String,
10   |            +++
11
12error[E0596]: cannot borrow `*self.longer_name` as mutable, as it is behind a `&` reference
13  --> $DIR/issue-38147-2.rs:12:9
14   |
15LL |         self.longer_name.push(13);
16   |         ^^^^^^^^^^^^^^^^ cannot borrow as mutable
17   |
18help: consider changing this to be mutable
19   |
20LL |     longer_name:   &   'a mut Vec<u8>
21   |                           +++
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0596`.