]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/expr-empty-ret.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[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() { }