File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ use std::panic;
1414
1515fn main ( ) {
1616 let r = panic:: catch_unwind ( || {
17- let mut it = u8:: MAX ..;
17+ let mut it = u8:: max_value ( ) ..;
1818 it. next ( ) ;
1919 } ) ;
2020 assert ! ( r. is_err( ) ) ;
2121
2222 let r = panic:: catch_unwind ( || {
23- let mut it = i8:: MAX ..;
23+ let mut it = i8:: max_value ( ) ..;
2424 it. next ( ) ;
2525 } ) ;
2626 assert ! ( r. is_err( ) ) ;
Original file line number Diff line number Diff line change 1111// compile-flags: -C debug_assertions=no
1212
1313fn main ( ) {
14- let mut it = u8:: MAX ..;
15- assert_eq ! ( it. next( ) , u8 :: MIN ) ;
14+ let mut it = u8:: max_value ( ) ..;
15+ assert_eq ! ( it. next( ) , u8 :: min_value ( ) ) ;
1616
17- let mut it = i8:: MAX ..;
18- assert_eq ! ( it. next( ) , i8 :: MIN ) ;
17+ let mut it = i8:: max_value ( ) ..;
18+ assert_eq ! ( it. next( ) , i8 :: min_value ( ) ) ;
1919}
You can’t perform that action at this time.
0 commit comments