Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-14285.rs
blob: 2ba9ff717739caf6ef97b7c708c73e93b934af47 [
file
] [
log
] [
blame
] [
edit
]
trait
Foo
{
fn
dummy
(&
self
)
{
}
}
struct
A
;
impl
Foo
for
A
{}
struct
B
<
'a>(&'
a
(
dyn
Foo
+
'
a
));
fn
foo
<
'a>(a: &dyn Foo) -> B<'
a
>
{
B
(
a
)
//~ ERROR explicit lifetime required in the type of `a` [E0621]
}
fn
main
()
{
let
_test
=
foo
(&
A
);
}