File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ fn test_arith_operation() {
15
15
assert_eq ! ( i32_a * i32_a * i32_a, 1000 ) ;
16
16
assert_eq ! ( i32_a * i32_a * i32_a * i32_a, 10000 ) ;
17
17
assert_eq ! ( i32_a * i32_a / i32_a * i32_a, 100 ) ;
18
- assert_eq ! ( i32_a * ( i32_a - 1 ) << ( 2 + i32_a as usize ) , 368640 ) ;
18
+ assert_eq ! ( ( i32_a * ( i32_a - 1 ) ) << ( 2 + i32_a as usize ) , 368640 ) ;
19
19
let i32_b: isize = 0x10101010 ;
20
20
assert_eq ! ( i32_b + 1 - 1 , i32_b) ;
21
21
assert_eq ! ( i32_b << 1 , i32_b << 1 ) ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ pub async fn b_sink<const N: usize>(_: impl Trait<N>) {}
74
74
75
75
// @has foo/fn.concrete.html '//pre[@class="rust item-decl"]' \
76
76
// 'pub fn concrete() -> [u8; 22]'
77
- pub fn concrete ( ) -> [ u8 ; 3 + std:: mem:: size_of :: < u64 > ( ) << 1 ] {
77
+ pub fn concrete ( ) -> [ u8 ; ( 3 + std:: mem:: size_of :: < u64 > ( ) ) << 1 ] {
78
78
Default :: default ( )
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const W: bool = Z <= 'B';
9
9
10
10
11
11
fn main ( ) {
12
- let _ = ( ( -1 as i8 ) << 8 - 1 ) as f32 ;
12
+ let _ = ( ( -1 as i8 ) << ( 8 - 1 ) ) as f32 ;
13
13
let _ = 0u8 as char ;
14
14
let _ = true > false ;
15
15
let _ = true >= false ;
You can’t perform that action at this time.
0 commit comments