fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/for-loop-bad-item.rs:7:19 3 | 4LL | for ((_, _), (&mut c, _)) in &mut map { 5 | ^^^^^^ -------- this is an iterator with items of type `(&(char, char), &mut (char, char))` 6 | | 7 | expected `char`, found `&mut _` 8 | 9 = note: expected type `char` 10 found mutable reference `&mut _` 11note: to declare a mutable binding use: `mut c` 12 --> $DIR/for-loop-bad-item.rs:7:19 13 | 14LL | for ((_, _), (&mut c, _)) in &mut map { 15 | ^^^^^^ 16help: consider removing `&mut` from the pattern 17 | 18LL - for ((_, _), (&mut c, _)) in &mut map { 19LL + for ((_, _), (c, _)) in &mut map { 20 | 21 22error[E0308]: mismatched types 23 --> $DIR/for-loop-bad-item.rs:14:14 24 | 25LL | for Some(Qux(_)) | None in [Some(""), None] { 26 | ^^^^^^ ---------------- this is an iterator with items of type `Option<&str>` 27 | | 28 | expected `str`, found `Qux` 29 30error: aborting due to 2 previous errors 31 32For more information about this error, try `rustc --explain E0308`.