Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-52049.rs
blob: efdcc44930567ca992b6afeb5259200da3b3be01 [
file
] [
log
] [
blame
]
fn
foo
(
_
:
&
'
static
u32
)
{}
fn
unpromotable
<
T
>(
t
:
T
)
->
T
{
t
}
fn
main
()
{
foo
(&
unpromotable
(
5u32
));
}
//~^^ ERROR temporary value dropped while borrowed