e324a59eb6
- Add doc comment to new type - Restore "only supported directly in conditions of `if` and `while` expressions" note - Rename variant with clearer name
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
error: expected expression, found `let` statement
|
|
--> $DIR/parens.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/parens.rs:10:16
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
| ^^^^^^^^^
|
|
|
|
error: expected expression, found `let` statement
|
|
--> $DIR/parens.rs:12: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/parens.rs:12:18
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
| ^^^^^^^^^
|
|
|
|
error: expected expression, found `let` statement
|
|
--> $DIR/parens.rs:20: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/parens.rs:20:16
|
|
|
|
|
LL | () if (let 0 = 1) => {}
|
|
| ^^^^^^^^^
|
|
|
|
error: expected expression, found `let` statement
|
|
--> $DIR/parens.rs:22: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/parens.rs:22:18
|
|
|
|
|
LL | () if (((let 0 = 1))) => {}
|
|
| ^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|