Skip to content

Commit b58359a

Browse files
committed
workaround bug in macro expansion.
1 parent 0a46037 commit b58359a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/run-fail/explicit-panic-msg.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
fn main() {
1616
let mut a = 1;
1717
if 1 == 1 { a = 2; }
18-
panic!(format!("woooo{}", "o"));
18+
let msg = format!("woooo{}", "o");
19+
panic!(msg);
1920
}

0 commit comments

Comments
 (0)