rust/tests/ui/while/while-let-scope-issue-40235.rs
DuskyElf 5b981a8e91 Quickfix //@ check-pass is enough
tests/ui/match/enum-and-break-in-match-issue-41213.rs
and tests/ui/while/while-let-scope-issue-40235.rs doesn't
need to be run.
2025-02-04 21:42:43 +05:30

9 lines
125 B
Rust

//@ check-pass
#![allow(unused_variables)]
fn foo() {}
fn main() {
while let Some(foo) = Some(1) { break }
foo();
}