Sign in
fuchsia
/
third_party
/
rust
/
6e1d94708a0a4a35ca7e46c6cac98adf62fe800e
/
.
/
tests
/
ui
/
borrowck
/
anonymous-region-in-apit.rs
blob: 7799a7cb151de5d629ee74d65aafd3f2ee69119f [
file
] [
log
] [
blame
]
#![
feature
(
anonymous_lifetime_in_impl_trait
)]
trait
Foo
<
T
>
{
fn
bar
(
self
,
baz
:
T
);
}
fn
qux
(
foo
:
impl
Foo
<&
str
>)
{
|
baz
:
&
str
|
foo
.
bar
(
baz
);
//~^ ERROR borrowed data escapes outside of closure
}
fn
main
()
{}