]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-int-rotate.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-int-rotate.rs
1 fn main() {
2     let x: &'static i32 = &(5_i32.rotate_left(3));
3     //~^ ERROR temporary value dropped while borrowed
4     let y: &'static i32 = &(5_i32.rotate_right(3));
5     //~^ ERROR temporary value dropped while borrowed
6 }