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