summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/irrefutable-let-patterns.rs
blob: d400ef0bbd64ca834336ee85950ad5fa56d67736 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

#![allow(irrefutable_let_patterns)]

fn main() {
    if let _ = 5 {}

    while let _ = 5 {
        break;
    }
}