Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 15, 2025
1 parent 2c0c661 commit 847bd67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ui/cast_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ fn main() {
//~^ cast_precision_loss
9_999_999_999_999_999usize as f64;
//~^ cast_precision_loss
//~[32bit]^^ overflowing_literals
//~[32bit]^^ ERROR: literal out of range for `usize`
// 999_999_999_999_999_999_999_999_999_999u128 as f128;
}
2 changes: 1 addition & 1 deletion tests/ui/fn_to_numeric_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn test_function_var_to_numeric_cast() {
fn fn_with_fn_args(f: fn(i32) -> i32) -> i32 {
f as i32
//~[64bit]^ fn_to_numeric_cast_with_truncation
//~[32bit]^^ ERROR: literal out of range for `usize`
//~[32bit]^^ fn_to_numeric_cast
}

fn main() {}

0 comments on commit 847bd67

Please sign in to comment.