2022-06-25 06:08:38 -05:00
|
|
|
error: expected expression, found `let` statement
|
2022-07-08 05:25:50 -05:00
|
|
|
--> $DIR/feature-gate.rs:10:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:15:18
|
2022-07-08 05:25:50 -05:00
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:28:16
|
2022-07-08 05:25:50 -05:00
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && true => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:33:24
|
2022-07-08 05:25:50 -05:00
|
|
|
|
|
|
|
|
LL | () if true && (let 0 = 1) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:38:16
|
2022-07-08 05:25:50 -05:00
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:38:31
|
2022-07-08 05:25:50 -05:00
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:42
|
2022-07-08 05:25:50 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:55
|
2022-07-31 20:13:16 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:68
|
2022-07-31 20:13:16 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:78:16
|
2022-06-25 06:08:38 -05:00
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1 && 0 == 0));
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:82:16
|
2022-06-25 06:08:38 -05:00
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1));
|
|
|
|
| ^^^
|
|
|
|
|
2020-07-14 02:53:23 -05:00
|
|
|
error: no rules expected the token `let`
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:92:15
|
2020-07-14 02:53:23 -05:00
|
|
|
|
|
|
|
|
LL | macro_rules! use_expr {
|
|
|
|
| --------------------- when calling this macro
|
|
|
|
...
|
|
|
|
LL | use_expr!(let 0 = 1);
|
|
|
|
| ^^^ no rules expected this token in macro call
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match meta-variable `$e:expr`
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:71:10
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
LL | ($e:expr) => {
|
|
|
|
| ^^^^^^^
|
2020-07-14 02:53:23 -05:00
|
|
|
|
2023-05-22 08:52:52 -05:00
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:10:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:10:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:15:18
|
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:15:18
|
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:28:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && true => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:28:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && true => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:33:24
|
|
|
|
|
|
|
|
|
LL | () if true && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:33:24
|
|
|
|
|
|
|
|
|
LL | () if true && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:38:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:38:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:38:31
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:38:31
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:46:42
|
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:46:42
|
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:46:55
|
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:46:42
|
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:46:68
|
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:46:42
|
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:78:16
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1 && 0 == 0));
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:78:16
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1 && 0 == 0));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `let` expressions are not supported here
|
|
|
|
--> $DIR/feature-gate.rs:82:16
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1));
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/feature-gate.rs:82:16
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1));
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2020-12-17 09:56:59 -06:00
|
|
|
error[E0658]: `if let` guards are experimental
|
2020-07-14 02:53:23 -05:00
|
|
|
--> $DIR/feature-gate.rs:7:12
|
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 => {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
|
|
|
|
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
|
2021-03-07 16:44:21 -06:00
|
|
|
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
|
2020-07-14 02:53:23 -05:00
|
|
|
|
2020-12-17 09:56:59 -06:00
|
|
|
error[E0658]: `if let` guards are experimental
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:20:12
|
2022-01-22 14:45:45 -06:00
|
|
|
|
|
|
|
|
LL | () if true && let 0 = 1 => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
|
|
|
|
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
|
|
|
|
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
|
|
|
|
|
|
|
|
error[E0658]: `if let` guards are experimental
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:24:12
|
2022-01-22 14:45:45 -06:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && true => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
|
|
|
|
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
|
|
|
|
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
|
|
|
|
|
|
|
|
error[E0658]: `if let` guards are experimental
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:12
|
2022-01-22 14:45:45 -06:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
|
|
|
|
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
|
|
|
|
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
|
|
|
|
|
|
|
|
error[E0658]: `if let` guards are experimental
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:61:12
|
2022-01-22 14:45:45 -06:00
|
|
|
|
|
|
|
|
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
|
|
|
|
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
|
|
|
|
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
|
|
|
|
|
|
|
|
error[E0658]: `if let` guards are experimental
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:88:12
|
2020-07-14 02:53:23 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 => {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
|
|
|
|
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
|
2021-03-07 16:44:21 -06:00
|
|
|
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
|
2020-07-14 02:53:23 -05:00
|
|
|
|
2022-08-20 13:40:08 -05:00
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
|
|
|
--> $DIR/feature-gate.rs:10:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:15:18
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:20:23
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if true && let 0 = 1 => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:24:15
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && true => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:28:16
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && true => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:33:24
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if true && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:38:16
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:38:31
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) && (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:15
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:28
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:42
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:55
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:46:68
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:61:15
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:78:16
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1 && 0 == 0));
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2023-05-22 08:52:52 -05:00
|
|
|
--> $DIR/feature-gate.rs:82:16
|
2022-08-20 13:40:08 -05:00
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1));
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
|
|
|
|
= help: add `#![feature(let_chains)]` to the crate attributes to enable
|
|
|
|
|
2023-05-22 08:52:52 -05:00
|
|
|
error: aborting due to 45 previous errors
|
2020-07-14 02:53:23 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|