]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
1a4d82fc JJ |
3 | // Just testing that panic!() type checks in statement or expr |
4 | ||
c34b1796 | 5 | |
1a4d82fc | 6 | #![allow(unreachable_code)] |
223e47cc LB |
7 | |
8 | fn f() { | |
1a4d82fc | 9 | panic!(); |
223e47cc | 10 | |
c34b1796 | 11 | let _x: isize = panic!(); |
223e47cc LB |
12 | } |
13 | ||
14 | pub fn main() { | |
15 | ||
16 | } |