fork/rust

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

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

master
560 B16 linesraw
1error[E0596]: cannot borrow `*test` as mutable, as it is behind a `&` reference
2  --> $DIR/suggest-mut-iterator.rs:22:9
3   |
4LL |     for test in &tests {
5   |                 ------ this iterator yields `&` references
6LL |         test.add(2);
7   |         ^^^^ `test` is a `&` reference, so the data it refers to cannot be borrowed as mutable
8   |
9help: use a mutable iterator instead
10   |
11LL |     for test in &mut tests {
12   |                  +++
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0596`.