]> git.lizzy.rs Git - rust.git/blob - src/test/ui/array-slice-vec/suggest-array-length.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / array-slice-vec / suggest-array-length.stderr
1 error: in expressions, `_` can only be used on the left-hand side of an assignment
2   --> $DIR/suggest-array-length.rs:8:20
3    |
4 LL |     let foo: [i32; _] = [1, 2, 3];
5    |                    ^ `_` not allowed here
6
7 error: in expressions, `_` can only be used on the left-hand side of an assignment
8   --> $DIR/suggest-array-length.rs:11:20
9    |
10 LL |     let bar: [i32; _] = [0; 3];
11    |                    ^ `_` not allowed here
12
13 error: in expressions, `_` can only be used on the left-hand side of an assignment
14   --> $DIR/suggest-array-length.rs:5:22
15    |
16 LL |     const Foo: [i32; _] = [1, 2, 3];
17    |                      ^ `_` not allowed here
18
19 error[E0658]: using `_` for array lengths is unstable
20   --> $DIR/suggest-array-length.rs:5:22
21    |
22 LL |     const Foo: [i32; _] = [1, 2, 3];
23    |                      ^ help: consider specifying the array length: `3`
24    |
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
27
28 error[E0658]: using `_` for array lengths is unstable
29   --> $DIR/suggest-array-length.rs:8:20
30    |
31 LL |     let foo: [i32; _] = [1, 2, 3];
32    |                    ^ help: consider specifying the array length: `3`
33    |
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
36
37 error[E0658]: using `_` for array lengths is unstable
38   --> $DIR/suggest-array-length.rs:11:20
39    |
40 LL |     let bar: [i32; _] = [0; 3];
41    |                    ^ help: consider specifying the array length: `3`
42    |
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
45
46 error: aborting due to 6 previous errors
47
48 For more information about this error, try `rustc --explain E0658`.