@@ -4,6 +4,7 @@ error: expected expression, found `let` statement
4
4
LL | () if (let 0 = 1) => {}
5
5
| ^^^^^^^^^
6
6
|
7
+ = note: only supported directly in conditions of `if` and `while` expressions
7
8
note: `let`s wrapped in parentheses are not supported in a context with let chains
8
9
--> $DIR/feature-gate.rs:10:16
9
10
|
@@ -16,6 +17,7 @@ error: expected expression, found `let` statement
16
17
LL | () if (((let 0 = 1))) => {}
17
18
| ^^^^^^^^^
18
19
|
20
+ = note: only supported directly in conditions of `if` and `while` expressions
19
21
note: `let`s wrapped in parentheses are not supported in a context with let chains
20
22
--> $DIR/feature-gate.rs:13:18
21
23
|
@@ -28,6 +30,7 @@ error: expected expression, found `let` statement
28
30
LL | () if (let 0 = 1) && true => {}
29
31
| ^^^^^^^^^
30
32
|
33
+ = note: only supported directly in conditions of `if` and `while` expressions
31
34
note: `let`s wrapped in parentheses are not supported in a context with let chains
32
35
--> $DIR/feature-gate.rs:24:16
33
36
|
@@ -40,6 +43,7 @@ error: expected expression, found `let` statement
40
43
LL | () if true && (let 0 = 1) => {}
41
44
| ^^^^^^^^^
42
45
|
46
+ = note: only supported directly in conditions of `if` and `while` expressions
43
47
note: `let`s wrapped in parentheses are not supported in a context with let chains
44
48
--> $DIR/feature-gate.rs:27:24
45
49
|
@@ -52,6 +56,7 @@ error: expected expression, found `let` statement
52
56
LL | () if (let 0 = 1) && (let 0 = 1) => {}
53
57
| ^^^^^^^^^
54
58
|
59
+ = note: only supported directly in conditions of `if` and `while` expressions
55
60
note: `let`s wrapped in parentheses are not supported in a context with let chains
56
61
--> $DIR/feature-gate.rs:30:16
57
62
|
@@ -64,6 +69,7 @@ error: expected expression, found `let` statement
64
69
LL | () if (let 0 = 1) && (let 0 = 1) => {}
65
70
| ^^^^^^^^^
66
71
|
72
+ = note: only supported directly in conditions of `if` and `while` expressions
67
73
note: `let`s wrapped in parentheses are not supported in a context with let chains
68
74
--> $DIR/feature-gate.rs:30:31
69
75
|
@@ -76,6 +82,7 @@ error: expected expression, found `let` statement
76
82
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
77
83
| ^^^^^^^^^
78
84
|
85
+ = note: only supported directly in conditions of `if` and `while` expressions
79
86
note: `let`s wrapped in parentheses are not supported in a context with let chains
80
87
--> $DIR/feature-gate.rs:34:42
81
88
|
@@ -88,6 +95,7 @@ error: expected expression, found `let` statement
88
95
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
89
96
| ^^^^^^^^^
90
97
|
98
+ = note: only supported directly in conditions of `if` and `while` expressions
91
99
note: `let`s wrapped in parentheses are not supported in a context with let chains
92
100
--> $DIR/feature-gate.rs:34:42
93
101
|
@@ -100,6 +108,7 @@ error: expected expression, found `let` statement
100
108
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
101
109
| ^^^^^^^^^
102
110
|
111
+ = note: only supported directly in conditions of `if` and `while` expressions
103
112
note: `let`s wrapped in parentheses are not supported in a context with let chains
104
113
--> $DIR/feature-gate.rs:34:42
105
114
|
@@ -111,12 +120,16 @@ error: expected expression, found `let` statement
111
120
|
112
121
LL | use_expr!((let 0 = 1 && 0 == 0));
113
122
| ^^^
123
+ |
124
+ = note: only supported directly in conditions of `if` and `while` expressions
114
125
115
126
error: expected expression, found `let` statement
116
127
--> $DIR/feature-gate.rs:62:16
117
128
|
118
129
LL | use_expr!((let 0 = 1));
119
130
| ^^^
131
+ |
132
+ = note: only supported directly in conditions of `if` and `while` expressions
120
133
121
134
error: no rules expected the token `let`
122
135
--> $DIR/feature-gate.rs:70:15
0 commit comments