summaryrefslogtreecommitdiffstats
path: root/src/test/ui/never_type/expr-empty-ret.rs
blob: ce8ffaf94d063e53d72d1b426442dc6b544797b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

#![allow(dead_code)]
// Issue #521

// pretty-expanded FIXME #23616

fn f() {
    let _x = match true {
        true => { 10 }
        false => { return }
    };
}

pub fn main() { }