Sign in
fuchsia
/
third_party
/
rust
/
8c93798e9f80d6d6ed9a2ab4b01af06a8fea23b7
/
.
/
src
/
test
/
ui
/
nll
/
ty-outlives
/
impl-trait-captures.rs
blob: 7405505d5d6f8da237fe8089f0a4cb3af6c285ad [
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
>
{
x
//~^ ERROR explicit lifetime required in the type of `x` [E0621]
}
fn
main
()
{}