We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8a298 commit 3dc078bCopy full SHA for 3dc078b
cast_checks/tests/inner_attribute_example.rs
@@ -23,12 +23,15 @@ cast_checks not descending into `mod c;` at src/lib.rs:3:0
23
#[test]
24
fn test() {
25
run_command("test", |mut command| {
26
- command.assert().failure().stdout(predicates::str::contains(
27
- "\
28
-thread 'checked_truncation' panicked at src/lib.rs:3:1:
29
-invalid cast in `x as u16` at src/lib.rs:3:0: TryFromIntError(())
+ command.assert().failure().stdout(
+ predicates::str::is_match(
+ r"\
+thread 'checked_truncation' \([0-9]*\) panicked at src/lib\.rs:3:1:
30
+invalid cast in `x as u16` at src/lib\.rs:3:0: TryFromIntError\(\(\)\)
31
",
- ));
32
+ )
33
+ .unwrap(),
34
+ );
35
});
36
}
37
0 commit comments