summaryrefslogtreecommitdiffstats
path: root/src/test/ui/let-else/let-else-irrefutable.rs
blob: 1cb68ecb8a6bfc4128c9318cf2efbe4165b277e5 (plain)
1
2
3
4
5
6
7
// check-pass



fn main() {
    let x = 1 else { return }; //~ WARN irrefutable `let...else` pattern
}