This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ fn main() {
10
10
assert_eq ! ( x, y | 1 ) ;
11
11
assert_eq ! (
12
12
0xFAFF_0000_FF8F_0000__FFFF_0000_FFFF_FFFE ,
13
- y & 0xFAFF_0000_FF8F_0000__FFFF_0000_FFFF_FFFF
13
+ y & 0xFAFF_0000_FF8F_0000__FFFF_0000_FFFF_FFFF ,
14
14
) ;
15
15
let z: u128 = 0xABCD_EF ;
16
16
assert_eq ! ( z * z, 0x734C_C2F2_A521 ) ;
@@ -22,7 +22,7 @@ fn main() {
22
22
assert_eq ! ( 0x1234_5678_9ABC_DEFF_EDCB_A987_5A86_421 , k - z) ;
23
23
assert_eq ! (
24
24
0x1000_0000_0000_0000_0000_0000_0000_000 ,
25
- k - 0x234_5678_9ABC_DEFF_EDCB_A987_6543_210
25
+ k - 0x234_5678_9ABC_DEFF_EDCB_A987_6543_210 ,
26
26
) ;
27
27
assert_eq ! ( 0x6EF5_DE4C_D3BC_2AAA_3BB4_CC5D_D6EE_8 , k / 42 ) ;
28
28
assert_eq ! ( 0 , k % 42 ) ;
@@ -51,7 +51,7 @@ fn main() {
51
51
assert_eq ! ( "20000000000000000000000" , format!( "{:o}" , j) ) ;
52
52
assert_eq ! (
53
53
"10000000000000000000000000000000000000000000000000000000000000000000" ,
54
- format!( "{:b}" , j)
54
+ format!( "{:b}" , j) ,
55
55
) ;
56
56
assert_eq ! ( "340282366920938463463374607431768211455" , format!( "{}" , u128 :: MAX ) ) ;
57
57
assert_eq ! ( "147573952589676412928" , format!( "{:?}" , j) ) ;
Original file line number Diff line number Diff line change @@ -86,9 +86,7 @@ fn d() {
86
86
unsafe {
87
87
match u {
88
88
MyUnion { f1 : 10 } => { }
89
- MyUnion { f2 : _f2 } => {
90
- panic ! ( "foo" ) ;
91
- }
89
+ MyUnion { f2 : _f2 } => panic ! ( "foo" ) ,
92
90
}
93
91
}
94
92
}
You can’t perform that action at this time.
0 commit comments