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