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;
14
14
15
15
fn main ( ) {
16
16
let r = panic:: catch_unwind ( || {
17
- let mut it = u8:: MAX ..;
17
+ let mut it = u8:: max_value ( ) ..;
18
18
it. next ( ) ;
19
19
} ) ;
20
20
assert ! ( r. is_err( ) ) ;
21
21
22
22
let r = panic:: catch_unwind ( || {
23
- let mut it = i8:: MAX ..;
23
+ let mut it = i8:: max_value ( ) ..;
24
24
it. next ( ) ;
25
25
} ) ;
26
26
assert ! ( r. is_err( ) ) ;
Original file line number Diff line number Diff line change 11
11
// compile-flags: -C debug_assertions=no
12
12
13
13
fn 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 ( ) ) ;
16
16
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 ( ) ) ;
19
19
}
You can’t perform that action at this time.
0 commit comments