Allow/fix non_fmt_panic in tests.

This commit is contained in:
Mara Bos
2021-02-02 00:40:17 +01:00
parent 34d5ac25c5
commit e9ad5be0f7
13 changed files with 42 additions and 35 deletions

View File

@@ -199,7 +199,7 @@ fn test_should_panic_bad_message() {
fn test_should_panic_non_string_message_type() {
use crate::tests::TrFailedMsg;
fn f() {
panic!(1i32);
std::panic::panic_any(1i32);
}
let expected = "foobar";
let failed_msg = format!(