fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
695 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/tuple-arity-mismatch.rs:6:20
3   |
4LL |     let y = first ((1,2.0,3));
5   |                    ^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
6   |
7   = note: expected tuple `(isize, f64)`
8              found tuple `(isize, f64, {integer})`
9
10error[E0308]: mismatched types
11  --> $DIR/tuple-arity-mismatch.rs:12:20
12   |
13LL |     let y = first ((1,));
14   |                    ^^^^ expected a tuple with 2 elements, found one with 1 element
15   |
16   = note: expected tuple `(isize, f64)`
17              found tuple `(isize,)`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.