@@ -20,40 +20,28 @@ error[E0658]: using `_` for array lengths is unstable
20
20
--> $DIR/suggest-array-length.rs:5:22
21
21
|
22
22
LL | const Foo: [i32; _] = [1, 2, 3];
23
- | ^
23
+ | ^ help: consider specifying the array length: `3`
24
24
|
25
25
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
26
26
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
27
- help: consider adding an array length
28
- |
29
- LL | const Foo: [i32; 3] = [1, 2, 3];
30
- | ~
31
27
32
28
error[E0658]: using `_` for array lengths is unstable
33
29
--> $DIR/suggest-array-length.rs:8:20
34
30
|
35
31
LL | let foo: [i32; _] = [1, 2, 3];
36
- | ^
32
+ | ^ help: consider specifying the array length: `3`
37
33
|
38
34
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
39
35
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
40
- help: consider adding an array length
41
- |
42
- LL | let foo: [i32; 3] = [1, 2, 3];
43
- | ~
44
36
45
37
error[E0658]: using `_` for array lengths is unstable
46
38
--> $DIR/suggest-array-length.rs:11:20
47
39
|
48
40
LL | let bar: [i32; _] = [0; 3];
49
- | ^
41
+ | ^ help: consider specifying the array length: `3`
50
42
|
51
43
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
52
44
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
53
- help: consider adding an array length
54
- |
55
- LL | let bar: [i32; 3] = [0; 3];
56
- | ~
57
45
58
46
error: aborting due to 6 previous errors
59
47
0 commit comments