about summary refs log tree commit diff
path: root/tests/ui/inference/array-len-mismatch.stderr
blob: 7146e3803d536f03e5c4a830871195170b084619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0308]: mismatched types
  --> $DIR/array-len-mismatch.rs:6:26
   |
LL |     let wrong: [u8; 3] = [10, 20];
   |                -------   ^^^^^^^^ expected an array with a size of 3, found one with a size of 2
   |                |    |
   |                |    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 size of 3, found one with a size of 2
   |                |    |
   |                |    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`.