Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
nll
/
ty-outlives
/
impl-trait-captures.rs
blob: faab2cf8bcbeab71fd09ec6d21ba6aa636381f3f [
file
] [
log
] [
blame
]
// 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
()
{}