Skip to content

Commit

Permalink
workaround bug in macro expansion.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Apr 18, 2015
1 parent 0a46037 commit b58359a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/run-fail/explicit-panic-msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
fn main() {
let mut a = 1;
if 1 == 1 { a = 2; }
panic!(format!("woooo{}", "o"));
let msg = format!("woooo{}", "o");
panic!(msg);
}

0 comments on commit b58359a

Please sign in to comment.