Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
unconstrained-lt.rs
blob: ff3753de5a2e199faa107a2116e00837964c70ee [
file
] [
log
] [
blame
] [
edit
]
trait
Foo
{
fn
test
()
->
impl
Sized
;
}
impl
<
'
a
,
T
>
Foo
for
T
{
//~^ ERROR the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
fn
test
()
->
&
'
a
()
{
&()
}
}
fn
main
()
{}