fork/rust

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

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

master
878 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/array-len-mismatch.rs:6:26
3   |
4LL |     let wrong: [u8; 3] = [10, 20];
5   |                -------   ^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
6   |                |    |
7   |                |    help: consider specifying the actual array length: `2`
8   |                expected due to this
9
10error[E0308]: mismatched types
11  --> $DIR/array-len-mismatch.rs:9:26
12   |
13LL |     let wrong: [u8; 3] = returns_arr();
14   |                -------   ^^^^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
15   |                |    |
16   |                |    help: consider specifying the actual array length: `2`
17   |                expected due to this
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.