mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
22 lines
878 B
Plaintext
22 lines
878 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/array-len-mismatch.rs:6:26
|
|
|
|
|
LL | let wrong: [u8; 3] = [10, 20];
|
|
| ------- ^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
|
|
| | |
|
|
| | help: consider specifying the actual array length: `2`
|
|
| expected due to this
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/array-len-mismatch.rs:9:26
|
|
|
|
|
LL | let wrong: [u8; 3] = returns_arr();
|
|
| ------- ^^^^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
|
|
| | |
|
|
| | help: consider specifying the actual array length: `2`
|
|
| expected due to this
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|