From 67ab64f3c09e17b23493c7cda498e7edb8830f21 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 1 Oct 2023 22:45:03 -0400 Subject: [PATCH] Include unexpected token in the test failure message --- tests/test_lit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_lit.rs b/tests/test_lit.rs index 2c5c929cfd..bc50136f64 100644 --- a/tests/test_lit.rs +++ b/tests/test_lit.rs @@ -20,7 +20,7 @@ fn lit(s: &str) -> Lit { assert!(tokens.next().is_none()); Lit::new(lit) } - _ => panic!(), + wrong => panic!("{:?}", wrong), } }