]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/die-macro.rs
Rollup merge of #106970 - kylematsuda:earlybinder-item-bounds, r=lcnr
[rust.git] / tests / 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 }