Sign in
fuchsia
/
third_party
/
rust
/
12307b3b08edee543a78fb9d4a837fbd6d6ac0fa
/
.
/
src
/
test
/
ui
/
consts
/
const-int-rotate.rs
blob: 3aacf854db1da974e509163450039191412df114 [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
:
&
'
static
i32
=
&(
5
_i32
.
rotate_left
(
3
));
//~^ ERROR temporary value dropped while borrowed
let
y
:
&
'
static
i32
=
&(
5
_i32
.
rotate_right
(
3
));
//~^ ERROR temporary value dropped while borrowed
}