diff options
Diffstat (limited to 'src/test/ui/borrowck/anonymous-region-in-apit.rs')
-rw-r--r-- | src/test/ui/borrowck/anonymous-region-in-apit.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/anonymous-region-in-apit.rs b/src/test/ui/borrowck/anonymous-region-in-apit.rs deleted file mode 100644 index 7799a7cb1..000000000 --- a/src/test/ui/borrowck/anonymous-region-in-apit.rs +++ /dev/null @@ -1,12 +0,0 @@ -#![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() {} |