Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
ty-outlives
/
impl-trait-captures.rs
blob: 57e2eb24cc17928ec7efcaa5cf9a2403d91cc7b0 [
file
] [
log
] [
blame
] [
edit
]
//@ compile-flags:-Zverbose-internals
#![
allow
(
warnings
)]
trait
Foo
<
'
a
>
{
}
impl
<
'a, T> Foo<'
a
>
for
T
{
}
fn
foo
<
'a, T>(x: &T) -> impl Foo<'
a
>
{
x
//~^ ERROR captures lifetime that does not appear in bounds
}
fn
main
()
{}