rust/tests/ui/pattern/usefulness/irrefutable-let-patterns.rs

12 lines
129 B
Rust

//@ run-pass
#![allow(irrefutable_let_patterns)]
fn main() {
if let _ = 5 {}
while let _ = 5 {
break;
}
}