rust/tests/source/issue_4374.rs
2020-08-09 14:32:34 -05:00

13 lines
160 B
Rust

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