Skip to content

Commit

Permalink
Account for rust-lang/rust#112849
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Aug 4, 2023
1 parent a788b5b commit 642c5d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cast_checks/tests/inner_attribute_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ cast_checks not descending into `mod c ;` at src/lib.rs:0:0
fn test() {
run_command("test", |mut command| {
command.assert().failure().stdout(predicates::str::contains(
"thread 'checked_truncation' panicked at 'invalid cast in `x as u16` at src/lib.rs:0:0: TryFromIntError(())', src/lib.rs:3:1"
"\
thread 'checked_truncation' panicked at src/lib.rs:3:1:
invalid cast in `x as u16` at src/lib.rs:0:0: TryFromIntError(())
",
));
});
}
Expand Down

0 comments on commit 642c5d9

Please sign in to comment.