2022-06-25 08:08:38 -03:00
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:33:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:33:9
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:36:11
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (((let 0 = 1))) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:36:11
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (((let 0 = 1))) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:39:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) && true {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:39:9
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) && true {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:42:17
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if true && (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:42:17
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if true && (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:45:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) && (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:45:9
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) && (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:45:24
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) && (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:45:24
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 1) && (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:35
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:35
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:48
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:35
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:61
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:35
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:59:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:59:12
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:62:14
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (((let 0 = 1))) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:62:14
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while (((let 0 = 1))) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:65:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) && true {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:65:12
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) && true {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:68:20
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while true && (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:68:20
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while true && (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:71:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) && (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:71:12
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) && (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:71:27
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) && (let 0 = 1) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:71:27
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 1) && (let 0 = 1) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:38
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:38
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:51
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:38
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:64
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:38
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:103:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if &let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:106:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if !let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:108:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if *let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:110:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if -let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:118:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 0)? {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:121:16
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if true || let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `||` operators are not supported in let chain expressions
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:121:13
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if true || let 0 = 0 {}
|
|
|
|
|
| ^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:123:17
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (true || let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:125:25
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if true && (true || let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:127:25
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | if true || (true && let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:131:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if x = let 0 = 0 {}
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:134:15
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if true..(let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:137:11
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if ..(let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:139:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 0).. {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:143:8
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: _, end: _ } = true..true && false {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:146:8
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: _, end: _ } = true..true || false {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:152:8
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: F, end } = F..|| true {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:158:8
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: true, end } = t..&&false {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:162:19
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if let true = let true = true {}
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:165:15
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | if return let 0 = 0 {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:168:21
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | loop { if break let 0 = 0 {} }
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:171:15
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | if (match let 0 = 0 { _ => { false } }) {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:174:9
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 0, false).1 {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:177:9
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 0,) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:181:13
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 0).await {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:185:12
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | if (|| let 0 = 0) {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:188:9
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | if (let 0 = 0)() {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:194:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while &let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:197:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while !let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:199:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while *let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:201:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while -let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:209:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 0)? {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:212:19
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while true || let 0 = 0 {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `||` operators are not supported in let chain expressions
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:212:16
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while true || let 0 = 0 {}
|
|
|
|
|
| ^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:214:20
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (true || let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:216:28
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while true && (true || let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:218:28
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | while true || (true && let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:222:15
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while x = let 0 = 0 {}
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:225:18
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while true..(let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:228:14
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while ..(let 0 = 0) {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:230:12
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 0).. {}
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:234:11
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: _, end: _ } = true..true && false {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:237:11
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: _, end: _ } = true..true || false {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:243:11
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: F, end } = F..|| true {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:249:11
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: true, end } = t..&&false {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:253:22
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | while let true = let true = true {}
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:256:18
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | while return let 0 = 0 {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:259:39
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | 'outer: loop { while break 'outer let 0 = 0 {} }
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:262:18
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | while (match let 0 = 0 { _ => { false } }) {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:265:12
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 0, false).1 {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:268:12
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 0,) {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:272:16
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 0).await {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:276:15
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | while (|| let 0 = 0) {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:279:12
|
2024-11-09 23:31:11 +01:00
|
|
|
|
|
|
|
|
|
LL | while (let 0 = 0)() {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:296:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | &let 0 = 0;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:299:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | !let 0 = 0;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:301:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | *let 0 = 0;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:303:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | -let 0 = 0;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:305:13
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = let _ = 3;
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:313:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | (let 0 = 0)?;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:316:13
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | true || let 0 = 0;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:318:14
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | (true || let 0 = 0);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:320:22
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | true && (true || let 0 = 0);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:324:9
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | x = let 0 = 0;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:327:12
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | true..(let 0 = 0);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:329:8
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | ..(let 0 = 0);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:331:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | (let 0 = 0)..;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:334:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | (let Range { start: _, end: _ } = true..true || false);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:338:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | (let true = let true = true);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:338:17
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | (let true = let true = true);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:344:25
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | let x = true && let y = 1;
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:350:19
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | [1, 2, 3][let _ = ()]
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:355:6
|
2022-06-25 08:08:38 -03:00
|
|
|
|
|
|
|
|
|
LL | &let 0 = 0
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-06-25 08:08:38 -03:00
|
|
|
|
2022-08-01 01:13:16 +00:00
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:366:17
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | true && let 1 = 1
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:371:17
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | true && let 1 = 1
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:376:17
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | true && let 1 = 1
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:387:17
|
2022-08-01 01:13:16 +00:00
|
|
|
|
|
|
|
|
|
LL | true && let 1 = 1
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-08-01 01:13:16 +00:00
|
|
|
|
2020-10-03 19:30:32 +01:00
|
|
|
error: expressions must be enclosed in braces to be used as const generic arguments
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:387:9
|
2019-05-21 06:50:53 +02:00
|
|
|
|
|
|
|
|
|
LL | true && let 1 = 1
|
2020-10-03 19:30:32 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: enclose the `const` expression in braces
|
|
|
|
|
|
|
|
|
|
|
LL | { true && let 1 = 1 }
|
2021-06-21 19:07:19 -07:00
|
|
|
| + +
|
2019-05-21 06:50:53 +02:00
|
|
|
|
2022-06-25 08:08:38 -03:00
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:397:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && true) {
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:397:9
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && true) {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:401:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt) && true {
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:401:9
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt) && true {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:404:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt) && (let Some(b) = a) {
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:404:9
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt) && (let Some(b) = a) {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:404:32
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt) && (let Some(b) = a) {
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:404:32
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt) && (let Some(b) = a) {
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:412:9
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:412:9
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:412:31
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
|
2023-09-08 10:14:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2023-09-08 10:14:36 +00:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:412:31
|
2023-09-08 10:14:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-07-08 07:25:50 -03:00
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:416:9
|
2022-03-31 18:33:05 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && true {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-03-31 18:33:05 -03:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:416:9
|
2022-03-31 18:33:05 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && true {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:416:31
|
2022-03-31 18:33:05 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && true {
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-03-31 18:33:05 -03:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:416:31
|
2022-03-31 18:33:05 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (let Some(b) = a)) && true {
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:420:9
|
2022-03-31 18:33:05 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (true)) && true {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2023-09-13 15:00:31 +00:00
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2022-03-31 18:33:05 -03:00
|
|
|
note: `let`s wrapped in parentheses are not supported in a context with let chains
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:420:9
|
2022-03-31 18:33:05 -03:00
|
|
|
|
|
|
|
|
|
LL | if (let Some(a) = opt && (true)) && true {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-10-03 19:30:32 +01:00
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:440:22
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
LL | let x = (true && let y = 1);
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:445:20
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
LL | ([1, 2, 3][let _ = ()])
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
error: expected expression, found `let` statement
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:91:16
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
LL | use_expr!((let 0 = 1 && 0 == 0));
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
error: expected expression, found `let` statement
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:91:16
|
|
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1 && 0 == 0));
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
|
|
|
|
--> $DIR/disallowed-positions.rs:91:16
|
|
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1 && 0 == 0));
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
|
|
|
|
--> $DIR/disallowed-positions.rs:95:16
|
|
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1));
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
|
|
|
|
--> $DIR/disallowed-positions.rs:95:16
|
|
|
|
|
|
|
|
|
|
|
LL | use_expr!((let 0 = 1));
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `let` statement
|
|
|
|
|
--> $DIR/disallowed-positions.rs:95:16
|
2020-08-25 20:28:25 -07:00
|
|
|
|
|
2023-09-08 10:14:36 +00:00
|
|
|
LL | use_expr!((let 0 = 1));
|
|
|
|
|
| ^^^
|
2023-09-13 15:00:31 +00:00
|
|
|
|
|
|
|
|
|
= note: only supported directly in conditions of `if` and `while` expressions
|
2024-04-18 21:31:17 +10:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2024-11-09 22:55:20 +01:00
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:8
|
2024-11-09 22:55:20 +01: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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:49:21
|
2024-11-09 22:55:20 +01: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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:11
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | while 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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-11-09 23:31:11 +01:00
|
|
|
--> $DIR/disallowed-positions.rs:75:24
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | while 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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:408:8
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | if let Some(a) = opt && (true && 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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:424:28
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | if (true && (true)) && let Some(a) = opt {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:427:18
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | if (true) && let Some(a) = opt {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:430:16
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | if true && let Some(a) = opt {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error[E0658]: `let` expressions in this position are unstable
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:435:8
|
2024-11-09 22:55:20 +01:00
|
|
|
|
|
|
|
|
|
LL | if let true = (true && fun()) && (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
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
2019-06-17 07:38:26 +02:00
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:134:8
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | if true..(let 0 = 0) {}
|
2023-01-02 18:00:33 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^ expected `bool`, found `Range<bool>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<bool>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:143:12
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: _, end: _ } = true..true && false {}
|
2019-12-30 07:02:24 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- this expression has type `bool`
|
2019-06-17 07:38:26 +02:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `bool`, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:146:12
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: _, end: _ } = true..true || false {}
|
2019-12-30 07:02:24 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- this expression has type `bool`
|
2019-06-17 07:38:26 +02:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `bool`, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:152:12
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: F, end } = F..|| true {}
|
2021-12-13 21:22:02 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `fn() -> bool`
|
|
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected fn pointer, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
2019-11-13 14:16:56 -08:00
|
|
|
= note: expected fn pointer `fn() -> bool`
|
|
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:158:12
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | if let Range { start: true, end } = t..&&false {}
|
2019-12-30 09:08:18 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `&&bool`
|
2019-06-17 07:38:26 +02:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `bool`, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the `?` operator can only be applied to values that implement `Try`
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:114:20
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | if let 0 = 0? {}
|
|
|
|
|
| ^^ the `?` operator cannot be applied to type `{integer}`
|
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: the trait `Try` is not implemented for `{integer}`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:225:11
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | while true..(let 0 = 0) {}
|
2023-01-02 18:00:33 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^ expected `bool`, found `Range<bool>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<bool>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:234:15
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: _, end: _ } = true..true && false {}
|
2019-12-30 07:02:24 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- this expression has type `bool`
|
2019-06-17 07:38:26 +02:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `bool`, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:237:15
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: _, end: _ } = true..true || false {}
|
2019-12-30 07:02:24 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- this expression has type `bool`
|
2019-06-17 07:38:26 +02:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `bool`, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:243:15
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: F, end } = F..|| true {}
|
2021-12-13 21:22:02 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `fn() -> bool`
|
|
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected fn pointer, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
2019-11-13 14:16:56 -08:00
|
|
|
= note: expected fn pointer `fn() -> bool`
|
|
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:249:15
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | while let Range { start: true, end } = t..&&false {}
|
2019-12-30 09:08:18 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `&&bool`
|
2019-06-17 07:38:26 +02:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `bool`, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the `?` operator can only be applied to values that implement `Try`
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:205:23
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | while let 0 = 0? {}
|
|
|
|
|
| ^^ the `?` operator cannot be applied to type `{integer}`
|
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: the trait `Try` is not implemented for `{integer}`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:334:10
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | (let Range { start: _, end: _ } = true..true || false);
|
2019-12-30 07:02:24 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- this expression has type `bool`
|
2019-06-17 07:38:26 +02:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `bool`, found `Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `std::ops::Range<_>`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the `?` operator can only be applied to values that implement `Try`
|
2024-04-18 21:31:17 +10:00
|
|
|
--> $DIR/disallowed-positions.rs:309:17
|
2019-06-17 07:38:26 +02:00
|
|
|
|
|
|
|
|
|
LL | let 0 = 0?;
|
|
|
|
|
| ^^ the `?` operator cannot be applied to type `{integer}`
|
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: the trait `Try` is not implemented for `{integer}`
|
2019-06-17 07:38:26 +02:00
|
|
|
|
2024-04-18 21:31:17 +10:00
|
|
|
error: aborting due to 134 previous errors
|
2019-05-11 15:06:36 +02:00
|
|
|
|
2024-11-09 22:55:20 +01:00
|
|
|
Some errors have detailed explanations: E0277, E0308, E0658.
|
2019-11-09 09:29:57 -08:00
|
|
|
For more information about an error, try `rustc --explain E0277`.
|