]>
Commit | Line | Data |
---|---|---|
a7813a04 | 1 | fn main() { |
48663c56 XL |
2 | let x: &'static i32 = &(5_i32.wrapping_add(3)); |
3 | //~^ ERROR temporary value dropped while borrowed | |
4 | let y: &'static i32 = &(5_i32.wrapping_sub(3)); | |
5 | //~^ ERROR temporary value dropped while borrowed | |
6 | let z: &'static i32 = &(5_i32.wrapping_mul(3)); | |
7 | //~^ ERROR temporary value dropped while borrowed | |
8 | let a: &'static i32 = &(5_i32.wrapping_shl(3)); | |
9 | //~^ ERROR temporary value dropped while borrowed | |
10 | let b: &'static i32 = &(5_i32.wrapping_shr(3)); | |
11 | //~^ ERROR temporary value dropped while borrowed | |
223e47cc | 12 | } |