Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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