Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
nll
/
ty-outlives
/
impl-trait-captures.rs
blob: bcdf643c0b9d1136001d98643105630f55fe0231 [
file
] [
log
] [
blame
]
// compile-flags:-Zborrowck=mir -Zverbose
#![
allow
(
warnings
)]
trait
Foo
<
'
a
>
{
}
impl
<
'a, T> Foo<'
a
>
for
T
{
}
fn
foo
<
'a, T>(x: &T) -> impl Foo<'
a
>
{
//~^ ERROR explicit lifetime required in the type of `x` [E0621]
x
}
fn
main
()
{}