]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-int-rotate.rs
Rollup merge of #106951 - tmiasko:rm-simplify-initial, r=oli-obk
[rust.git] / tests / 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 }