@@ -20,40 +20,28 @@ error[E0658]: using `_` for array lengths is unstable
2020 --> $DIR/suggest-array-length.rs:5:22
2121 |
2222LL | const Foo: [i32; _] = [1, 2, 3];
23- | ^
23+ | ^ help: consider specifying the array length: `3`
2424 |
2525 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
2626 = 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- | ~
3127
3228error[E0658]: using `_` for array lengths is unstable
3329 --> $DIR/suggest-array-length.rs:8:20
3430 |
3531LL | let foo: [i32; _] = [1, 2, 3];
36- | ^
32+ | ^ help: consider specifying the array length: `3`
3733 |
3834 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
3935 = 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- | ~
4436
4537error[E0658]: using `_` for array lengths is unstable
4638 --> $DIR/suggest-array-length.rs:11:20
4739 |
4840LL | let bar: [i32; _] = [0; 3];
49- | ^
41+ | ^ help: consider specifying the array length: `3`
5042 |
5143 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
5244 = 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- | ~
5745
5846error: aborting due to 6 previous errors
5947
0 commit comments