1 error: in expressions, `_` can only be used on the left-hand side of an assignment
2 --> $DIR/suggest-array-length.rs:11: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:14: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:17:25
16 LL | let ref_foo: &[i32; _] = &[1, 2, 3];
17 | ^ `_` not allowed here
19 error: in expressions, `_` can only be used on the left-hand side of an assignment
20 --> $DIR/suggest-array-length.rs:20:25
22 LL | let ref_bar: &[i32; _] = &[0; 3];
23 | ^ `_` not allowed here
25 error: in expressions, `_` can only be used on the left-hand side of an assignment
26 --> $DIR/suggest-array-length.rs:23:35
28 LL | let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
29 | ^ `_` not allowed here
31 error: in expressions, `_` can only be used on the left-hand side of an assignment
32 --> $DIR/suggest-array-length.rs:5:22
34 LL | const Foo: [i32; _] = [1, 2, 3];
35 | ^ `_` not allowed here
37 error: in expressions, `_` can only be used on the left-hand side of an assignment
38 --> $DIR/suggest-array-length.rs:8:26
40 LL | const REF_FOO: &[u8; _] = &[1];
41 | ^ `_` not allowed here
43 error[E0658]: using `_` for array lengths is unstable
44 --> $DIR/suggest-array-length.rs:5:22
46 LL | const Foo: [i32; _] = [1, 2, 3];
47 | ^ help: consider specifying the array length: `3`
49 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
50 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
52 error[E0658]: using `_` for array lengths is unstable
53 --> $DIR/suggest-array-length.rs:8:26
55 LL | const REF_FOO: &[u8; _] = &[1];
56 | ^ help: consider specifying the array length: `1`
58 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
59 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
61 error[E0658]: using `_` for array lengths is unstable
62 --> $DIR/suggest-array-length.rs:11:20
64 LL | let foo: [i32; _] = [1, 2, 3];
65 | ^ help: consider specifying the array length: `3`
67 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
68 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
70 error[E0658]: using `_` for array lengths is unstable
71 --> $DIR/suggest-array-length.rs:14:20
73 LL | let bar: [i32; _] = [0; 3];
74 | ^ help: consider specifying the array length: `3`
76 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
77 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
79 error[E0658]: using `_` for array lengths is unstable
80 --> $DIR/suggest-array-length.rs:17:25
82 LL | let ref_foo: &[i32; _] = &[1, 2, 3];
83 | ^ help: consider specifying the array length: `3`
85 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
86 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
88 error[E0658]: using `_` for array lengths is unstable
89 --> $DIR/suggest-array-length.rs:20:25
91 LL | let ref_bar: &[i32; _] = &[0; 3];
92 | ^ help: consider specifying the array length: `3`
94 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
95 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
97 error[E0658]: using `_` for array lengths is unstable
98 --> $DIR/suggest-array-length.rs:23:35
100 LL | let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
101 | ^ help: consider specifying the array length: `3`
103 = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
104 = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
106 error: aborting due to 14 previous errors
108 For more information about this error, try `rustc --explain E0658`.