Sign in
fuchsia
/
third_party
/
rust
/
541ad45a83482e3132c75fbbc55fb2afc03a6031
/
.
/
src
/
test
/
ui
/
issues
/
issue-16922.rs
blob: 1e865515c4b74de109182e3ac71b97414c88bc9f [
file
] [
log
] [
blame
]
use
std
::
any
::
Any
;
fn
foo
<
T
:
Any
>(
value
:
&
T
)
->
Box
<
Any
>
{
Box
::
new
(
value
)
as
Box
<
Any
>
//~^ ERROR explicit lifetime required in the type of `value` [E0621]
}
fn
main
()
{
let
_
=
foo
(&
5
);
}