fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
4.4 KiB108 linesraw
1error: in expressions, `_` can only be used on the left-hand side of an assignment
2  --> $DIR/suggest-array-length.rs:11:20
3   |
4LL |     let foo: [i32; _] = [1, 2, 3];
5   |                    ^ `_` not allowed here
6
7error: in expressions, `_` can only be used on the left-hand side of an assignment
8  --> $DIR/suggest-array-length.rs:14:20
9   |
10LL |     let bar: [i32; _] = [0; 3];
11   |                    ^ `_` not allowed here
12
13error: in expressions, `_` can only be used on the left-hand side of an assignment
14  --> $DIR/suggest-array-length.rs:17:25
15   |
16LL |     let ref_foo: &[i32; _] = &[1, 2, 3];
17   |                         ^ `_` not allowed here
18
19error: in expressions, `_` can only be used on the left-hand side of an assignment
20  --> $DIR/suggest-array-length.rs:20:25
21   |
22LL |     let ref_bar: &[i32; _] = &[0; 3];
23   |                         ^ `_` not allowed here
24
25error: in expressions, `_` can only be used on the left-hand side of an assignment
26  --> $DIR/suggest-array-length.rs:23:35
27   |
28LL |     let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
29   |                                   ^ `_` not allowed here
30
31error: in expressions, `_` can only be used on the left-hand side of an assignment
32  --> $DIR/suggest-array-length.rs:5:22
33   |
34LL |     const Foo: [i32; _] = [1, 2, 3];
35   |                      ^ `_` not allowed here
36
37error: in expressions, `_` can only be used on the left-hand side of an assignment
38  --> $DIR/suggest-array-length.rs:8:26
39   |
40LL |     const REF_FOO: &[u8; _] = &[1];
41   |                          ^ `_` not allowed here
42
43error[E0658]: using `_` for array lengths is unstable
44  --> $DIR/suggest-array-length.rs:5:22
45   |
46LL |     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
52error[E0658]: using `_` for array lengths is unstable
53  --> $DIR/suggest-array-length.rs:8:26
54   |
55LL |     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
61error[E0658]: using `_` for array lengths is unstable
62  --> $DIR/suggest-array-length.rs:11:20
63   |
64LL |     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
70error[E0658]: using `_` for array lengths is unstable
71  --> $DIR/suggest-array-length.rs:14:20
72   |
73LL |     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
79error[E0658]: using `_` for array lengths is unstable
80  --> $DIR/suggest-array-length.rs:17:25
81   |
82LL |     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
88error[E0658]: using `_` for array lengths is unstable
89  --> $DIR/suggest-array-length.rs:20:25
90   |
91LL |     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
97error[E0658]: using `_` for array lengths is unstable
98  --> $DIR/suggest-array-length.rs:23:35
99   |
100LL |     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
106error: aborting due to 14 previous errors
107
108For more information about this error, try `rustc --explain E0658`.