fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-109991.rs:11:11 3 | 4LL | let c: usize; 5 | ----- expected due to this type 6LL | 7LL | (c) = (&123); 8 | ^^^^^^ expected `usize`, found `&{integer}` 9 | 10help: consider removing the borrow 11 | 12LL - (c) = (&123); 13LL + (c) = (123); 14 | 15 16error[E0308]: mismatched types 17 --> $DIR/issue-109991.rs:12:9 18 | 19LL | let b: usize; 20 | ----- expected due to this type 21... 22LL | (a, b) = (123, &mut 123); 23 | ^ expected `usize`, found `&mut {integer}` 24 25error[E0308]: mismatched types 26 --> $DIR/issue-109991.rs:15:6 27 | 28LL | let x: String; 29 | ------ expected due to this type 30LL | (x,) = (1,); 31 | ^ expected `String`, found integer 32 33error[E0308]: mismatched types 34 --> $DIR/issue-109991.rs:18:6 35 | 36LL | let x: i32; 37 | --- expected due to this type 38LL | [x] = [&1]; 39 | ^ expected `i32`, found `&{integer}` 40 41error[E0308]: mismatched types 42 --> $DIR/issue-109991.rs:21:6 43 | 44LL | let x: &i32; 45 | ---- expected due to this type 46LL | [x] = [1]; 47 | ^ expected `&i32`, found integer 48 49error[E0308]: mismatched types 50 --> $DIR/issue-109991.rs:24:9 51 | 52LL | let b: usize; 53 | ----- expected due to this type 54... 55LL | (a, b) = x; 56 | ^ expected `usize`, found `&mut {integer}` 57 58error[E0308]: mismatched types 59 --> $DIR/issue-109991.rs:26:31 60 | 61LL | S { a, b } = S { a: 1, b: &mut 2 }; 62 | ^^^^^^ expected `usize`, found `&mut {integer}` 63 | 64help: consider removing the borrow 65 | 66LL - S { a, b } = S { a: 1, b: &mut 2 }; 67LL + S { a, b } = S { a: 1, b: 2 }; 68 | 69 70error: aborting due to 7 previous errors 71 72For more information about this error, try `rustc --explain E0308`.