]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/die-macro.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / macros / die-macro.rs
1 // run-pass
2 #![allow(dead_code)]
3 // Just testing that panic!() type checks in statement or expr
4
5
6 #![allow(unreachable_code)]
7
8 fn f() {
9     panic!();
10
11     let _x: isize = panic!();
12 }
13
14 pub fn main() {
15
16 }