]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/die-macro.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / macros / die-macro.rs
CommitLineData
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
8fn f() {
1a4d82fc 9 panic!();
223e47cc 10
c34b1796 11 let _x: isize = panic!();
223e47cc
LB
12}
13
14pub fn main() {
15
16}