summaryrefslogtreecommitdiffstats
path: root/tests/ui/array-slice-vec/suggest-array-length.stderr
blob: 16c90a04784d0e674565e6ef86f10dbc50b9211c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
error: in expressions, `_` can only be used on the left-hand side of an assignment
  --> $DIR/suggest-array-length.rs:11:20
   |
LL |     let foo: [i32; _] = [1, 2, 3];
   |                    ^ `_` not allowed here

error: in expressions, `_` can only be used on the left-hand side of an assignment
  --> $DIR/suggest-array-length.rs:14:20
   |
LL |     let bar: [i32; _] = [0; 3];
   |                    ^ `_` not allowed here

error: in expressions, `_` can only be used on the left-hand side of an assignment
  --> $DIR/suggest-array-length.rs:17:25
   |
LL |     let ref_foo: &[i32; _] = &[1, 2, 3];
   |                         ^ `_` not allowed here

error: in expressions, `_` can only be used on the left-hand side of an assignment
  --> $DIR/suggest-array-length.rs:20:25
   |
LL |     let ref_bar: &[i32; _] = &[0; 3];
   |                         ^ `_` not allowed here

error: in expressions, `_` can only be used on the left-hand side of an assignment
  --> $DIR/suggest-array-length.rs:23:35
   |
LL |     let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
   |                                   ^ `_` not allowed here

error: in expressions, `_` can only be used on the left-hand side of an assignment
  --> $DIR/suggest-array-length.rs:5:22
   |
LL |     const Foo: [i32; _] = [1, 2, 3];
   |                      ^ `_` not allowed here

error: in expressions, `_` can only be used on the left-hand side of an assignment
  --> $DIR/suggest-array-length.rs:8:26
   |
LL |     const REF_FOO: &[u8; _] = &[1];
   |                          ^ `_` not allowed here

error[E0658]: using `_` for array lengths is unstable
  --> $DIR/suggest-array-length.rs:5:22
   |
LL |     const Foo: [i32; _] = [1, 2, 3];
   |                      ^ help: consider specifying the array length: `3`
   |
   = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
   = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable

error[E0658]: using `_` for array lengths is unstable
  --> $DIR/suggest-array-length.rs:8:26
   |
LL |     const REF_FOO: &[u8; _] = &[1];
   |                          ^ help: consider specifying the array length: `1`
   |
   = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
   = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable

error[E0658]: using `_` for array lengths is unstable
  --> $DIR/suggest-array-length.rs:11:20
   |
LL |     let foo: [i32; _] = [1, 2, 3];
   |                    ^ help: consider specifying the array length: `3`
   |
   = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
   = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable

error[E0658]: using `_` for array lengths is unstable
  --> $DIR/suggest-array-length.rs:14:20
   |
LL |     let bar: [i32; _] = [0; 3];
   |                    ^ help: consider specifying the array length: `3`
   |
   = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
   = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable

error[E0658]: using `_` for array lengths is unstable
  --> $DIR/suggest-array-length.rs:17:25
   |
LL |     let ref_foo: &[i32; _] = &[1, 2, 3];
   |                         ^ help: consider specifying the array length: `3`
   |
   = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
   = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable

error[E0658]: using `_` for array lengths is unstable
  --> $DIR/suggest-array-length.rs:20:25
   |
LL |     let ref_bar: &[i32; _] = &[0; 3];
   |                         ^ help: consider specifying the array length: `3`
   |
   = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
   = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable

error[E0658]: using `_` for array lengths is unstable
  --> $DIR/suggest-array-length.rs:23:35
   |
LL |     let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
   |                                   ^ help: consider specifying the array length: `3`
   |
   = note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
   = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable

error: aborting due to 14 previous errors

For more information about this error, try `rustc --explain E0658`.