Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
nll
/
ty-outlives
/
impl-trait-captures.rs
blob: 67b31b8bcd4f510fcd0bd24ee9a69b71dfc01f9d [
file
] [
log
] [
blame
]
// compile-flags:-Zverbose
#![
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
()
{}