rust/tests/source/issue_4374.rs

13 lines
160 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;
}
});
}