]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/expr-empty-ret.rs
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
[rust.git] / src / test / ui / never_type / expr-empty-ret.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // Issue #521
5
6 // pretty-expanded FIXME #23616
7
8 fn f() {
9     let _x = match true {
10         true => { 10 }
11         false => { return }
12     };
13 }
14
15 pub fn main() { }