about summary refs log tree commit diff
path: root/tests/ui/while/while-let-scope-issue-40235.rs
blob: 7d5dfc64a9059057869668fd9990a72e3f5ad2c8 (plain)
1
2
3
4
5
6
7
8
//@ check-pass
#![allow(unused_variables)]
fn foo() {}

fn main() {
    while let Some(foo) = Some(1) { break }
    foo();
}