1 error: in expressions, `_` can only be used on the left-hand side of an assignment
2 --> $DIR/suggest-array-length.rs:8:20
4 LL | let foo: [i32; _] = [1, 2, 3];
5 | ^ `_` not allowed here
7 error: in expressions, `_` can only be used on the left-hand side of an assignment
8 --> $DIR/suggest-array-length.rs:11:20
10 LL | let bar: [i32; _] = [0; 3];
11 | ^ `_` not allowed here
13 error: in expressions, `_` can only be used on the left-hand side of an assignment
14 --> $DIR/suggest-array-length.rs:5:22
16 LL | const Foo: [i32; _] = [1, 2, 3];
17 | ^ `_` not allowed here
19 error[E0658]: using `_` for array lengths is unstable
20 --> $DIR/suggest-array-length.rs:5:22
22 LL | const Foo: [i32; _] = [1, 2, 3];
23 | ^ help: consider specifying the array length: `3`
25 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
26 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
28 error[E0658]: using `_` for array lengths is unstable
29 --> $DIR/suggest-array-length.rs:8:20
31 LL | let foo: [i32; _] = [1, 2, 3];
32 | ^ help: consider specifying the array length: `3`
34 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
35 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
37 error[E0658]: using `_` for array lengths is unstable
38 --> $DIR/suggest-array-length.rs:11:20
40 LL | let bar: [i32; _] = [0; 3];
41 | ^ help: consider specifying the array length: `3`
43 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
44 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
46 error: aborting due to 6 previous errors
48 For more information about this error, try `rustc --explain E0658`.