rust/tests/target/issue_4374.rs

14 lines
185 B
Rust
Raw Normal View History

fn a<F>(_f: F) -> ()
where
F: FnOnce() -> (),
{
}
fn main() {
a(|| {
#[allow(irrefutable_let_patterns)]
while let _ = 0 {
break;
}
});
}