Skip to content

Commit c21ffc2

Browse files
committed
print the unexpected character
1 parent 008f9d5 commit c21ffc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/atomic-print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn main(){
4141
match line.chars().next().unwrap() {
4242
'1' => assert_eq!(line, "11111"),
4343
'2' => assert_eq!(line, "22222"),
44-
_ => panic!("Unexpected character")
44+
chr => panic!("unexpected character {:?}", chr)
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)