]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-int-rotate.rs
suggest fix for attempted integer identifier in patterns
[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 }