Skip to content

Commit 9ce6863

Browse files
committed
merge die-macro tests into panic-macro-basic.rs
1 parent adacd90 commit 9ce6863

4 files changed

Lines changed: 8 additions & 35 deletions

File tree

tests/ui/macros/die-macro-2.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/ui/macros/die-macro-pure.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/ui/macros/die-macro.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
//@ run-fail
22
//@ error-pattern:test
33
//@ needs-subprocess
4+
// Just testing that panic!() type checks in statement or expr
45

5-
fn main() {
6+
fn f() {
67
let __isize: isize = panic!("test");
8+
9+
panic!();
10+
}
11+
12+
fn main() {
13+
f();
714
}

0 commit comments

Comments
 (0)