Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
nll
/
borrowed-universal-error.rs
blob: fc9ffd47061b4556ecd418eec42dd103c64f5764 [
file
] [
log
] [
blame
]
fn
gimme
(
x
:
&(
u32
,))
->
&
u32
{
&
x
.
0
}
fn
foo
<
'a>(x: &'
a
(
u32
,))
->
&
'
a u32
{
let
v
=
22
;
gimme
(&(
v
,))
//~^ ERROR cannot return value referencing temporary value [E0515]
}
fn
main
()
{}