summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-40235.rs
blob: 0f799c3503f3934addb17240b6adcbd36183b7e1 (plain)
1
2
3
4
5
6
7
8
// run-pass
#![allow(unused_variables)]
fn foo() {}

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