Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
nll
/
borrowed-temporary-error.rs
blob: 37d0e670d350d1d7f9b47a5588307de541e32ce6 [
file
] [
log
] [
blame
]
fn
gimme
(
x
:
&(
u32
,))
->
&
u32
{
&
x
.
0
}
fn
main
()
{
let
x
=
gimme
({
let
v
=
22
;
&(
v
,)
//~^ ERROR temporary value dropped while borrowed [E0716]
});
println
!(
"{:?}"
,
x
);
}