Skip to content

Commit

Permalink
Include unexpected token in the test failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 2, 2023
1 parent 137ae33 commit 67ab64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_lit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn lit(s: &str) -> Lit {
assert!(tokens.next().is_none());
Lit::new(lit)
}
_ => panic!(),
wrong => panic!("{:?}", wrong),
}
}

Expand Down

0 comments on commit 67ab64f

Please sign in to comment.