We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb8eaa commit 11fb3c1Copy full SHA for 11fb3c1
tests/ui/collapsible_if.rs
@@ -200,4 +200,25 @@ fn main() {
200
println!("Hello world!");
201
}
202
203
+
204
+ // Test behavior wrt. `let_chains`.
205
+ // None of the cases below should be collapsed.
206
+ fn truth() -> bool { true }
207
208
+ // Prefix:
209
+ if let 0 = 1 {
210
+ if truth() {}
211
+ }
212
213
+ // Suffix:
214
+ if truth() {
215
+ if let 0 = 1 {}
216
217
218
+ // Midfix:
219
220
221
222
223
224
0 commit comments