2022-08-15 10:16:14 -05:00
|
|
|
error: in expressions, `_` can only be used on the left-hand side of an assignment
|
2022-09-06 12:37:18 -05:00
|
|
|
--> $DIR/suggest-array-length.rs:11:20
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
|
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
|
2022-09-06 12:37:18 -05:00
|
|
|
--> $DIR/suggest-array-length.rs:14:20
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
|
LL | let bar: [i32; _] = [0; 3];
|
|
|
|
| ^ `_` not allowed here
|
|
|
|
|
2022-09-06 12:37:18 -05:00
|
|
|
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
|
|
|
|
|
2022-08-15 10:16:14 -05:00
|
|
|
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
|
|
|
|
|
2022-09-06 12:37:18 -05:00
|
|
|
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
|
|
|
|
|
2022-08-15 10:16:14 -05:00
|
|
|
error[E0658]: using `_` for array lengths is unstable
|
|
|
|
--> $DIR/suggest-array-length.rs:5:22
|
|
|
|
|
|
|
|
|
LL | const Foo: [i32; _] = [1, 2, 3];
|
2022-08-15 13:42:58 -05:00
|
|
|
| ^ help: consider specifying the array length: `3`
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
|
= 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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
error[E0658]: using `_` for array lengths is unstable
|
2022-09-06 12:37:18 -05:00
|
|
|
--> $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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-09-06 12:37:18 -05:00
|
|
|
|
|
|
|
error[E0658]: using `_` for array lengths is unstable
|
|
|
|
--> $DIR/suggest-array-length.rs:11:20
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
|
LL | let foo: [i32; _] = [1, 2, 3];
|
2022-08-15 13:42:58 -05:00
|
|
|
| ^ help: consider specifying the array length: `3`
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
|
= 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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
error[E0658]: using `_` for array lengths is unstable
|
2022-09-06 12:37:18 -05:00
|
|
|
--> $DIR/suggest-array-length.rs:14:20
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
|
LL | let bar: [i32; _] = [0; 3];
|
2022-08-15 13:42:58 -05:00
|
|
|
| ^ help: consider specifying the array length: `3`
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
|
= 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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-08-15 10:16:14 -05:00
|
|
|
|
2022-09-06 12:37:18 -05:00
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-09-06 12:37:18 -05:00
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-09-06 12:37:18 -05:00
|
|
|
|
|
|
|
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
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-09-06 12:37:18 -05:00
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
2022-08-15 10:16:14 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|