]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/suggest-array-length.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / 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:11: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:14: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:17:25
15    |
16 LL |     let ref_foo: &[i32; _] = &[1, 2, 3];
17    |                         ^ `_` not allowed here
18
19 error: in expressions, `_` can only be used on the left-hand side of an assignment
20   --> $DIR/suggest-array-length.rs:20:25
21    |
22 LL |     let ref_bar: &[i32; _] = &[0; 3];
23    |                         ^ `_` not allowed here
24
25 error: in expressions, `_` can only be used on the left-hand side of an assignment
26   --> $DIR/suggest-array-length.rs:23:35
27    |
28 LL |     let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
29    |                                   ^ `_` not allowed here
30
31 error: in expressions, `_` can only be used on the left-hand side of an assignment
32   --> $DIR/suggest-array-length.rs:5:22
33    |
34 LL |     const Foo: [i32; _] = [1, 2, 3];
35    |                      ^ `_` not allowed here
36
37 error: in expressions, `_` can only be used on the left-hand side of an assignment
38   --> $DIR/suggest-array-length.rs:8:26
39    |
40 LL |     const REF_FOO: &[u8; _] = &[1];
41    |                          ^ `_` not allowed here
42
43 error[E0658]: using `_` for array lengths is unstable
44   --> $DIR/suggest-array-length.rs:5:22
45    |
46 LL |     const Foo: [i32; _] = [1, 2, 3];
47    |                      ^ help: consider specifying the array length: `3`
48    |
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
51
52 error[E0658]: using `_` for array lengths is unstable
53   --> $DIR/suggest-array-length.rs:8:26
54    |
55 LL |     const REF_FOO: &[u8; _] = &[1];
56    |                          ^ help: consider specifying the array length: `1`
57    |
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
60
61 error[E0658]: using `_` for array lengths is unstable
62   --> $DIR/suggest-array-length.rs:11:20
63    |
64 LL |     let foo: [i32; _] = [1, 2, 3];
65    |                    ^ help: consider specifying the array length: `3`
66    |
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
69
70 error[E0658]: using `_` for array lengths is unstable
71   --> $DIR/suggest-array-length.rs:14:20
72    |
73 LL |     let bar: [i32; _] = [0; 3];
74    |                    ^ help: consider specifying the array length: `3`
75    |
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
78
79 error[E0658]: using `_` for array lengths is unstable
80   --> $DIR/suggest-array-length.rs:17:25
81    |
82 LL |     let ref_foo: &[i32; _] = &[1, 2, 3];
83    |                         ^ help: consider specifying the array length: `3`
84    |
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
87
88 error[E0658]: using `_` for array lengths is unstable
89   --> $DIR/suggest-array-length.rs:20:25
90    |
91 LL |     let ref_bar: &[i32; _] = &[0; 3];
92    |                         ^ help: consider specifying the array length: `3`
93    |
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
96
97 error[E0658]: using `_` for array lengths is unstable
98   --> $DIR/suggest-array-length.rs:23:35
99    |
100 LL |     let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
101    |                                   ^ help: consider specifying the array length: `3`
102    |
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
105
106 error: aborting due to 14 previous errors
107
108 For more information about this error, try `rustc --explain E0658`.