2023-08-24 03:41:30 -05:00
|
|
|
error: expected expression, found `let` statement
|
|
|
|
--> $DIR/parens.rs:10:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
2023-09-08 05:14:36 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2023-09-13 10:00:31 -05:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 05:14:36 -05:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/parens.rs:10:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
2023-08-24 03:41:30 -05:00
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
|
|
|
--> $DIR/parens.rs:12:18
|
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
2023-09-08 05:14:36 -05:00
|
|
|
| ^^^^^^^^^
|
2023-08-24 03:41:30 -05:00
|
|
|
|
|
2023-09-13 10:00:31 -05:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 05:14:36 -05:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/parens.rs:12:18
|
2023-08-24 03:41:30 -05:00
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
2023-09-08 05:14:36 -05:00
|
|
|
| ^^^^^^^^^
|
2023-08-24 03:41:30 -05:00
|
|
|
|
2023-09-08 05:14:36 -05:00
|
|
|
error: expected expression, found `let` statement
|
2023-08-24 03:41:30 -05:00
|
|
|
--> $DIR/parens.rs:20:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2023-09-13 10:00:31 -05:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-08-24 03:41:30 -05:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
|
|
|
--> $DIR/parens.rs:20:16
|
|
|
|
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-09-08 05:14:36 -05:00
|
|
|
error: expected expression, found `let` statement
|
|
|
|
--> $DIR/parens.rs:22:18
|
2023-08-24 03:41:30 -05:00
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2023-09-13 10:00:31 -05:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-08-24 03:41:30 -05:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2023-09-08 05:14:36 -05:00
|
|
|
--> $DIR/parens.rs:22:18
|
2023-08-24 03:41:30 -05:00
|
|
|
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-09-08 05:14:36 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2023-08-24 03:41:30 -05:00
|
|
|
|