diff options
Diffstat (limited to 'src/test/ui/parser/recover-quantified-closure.rs')
-rw-r--r-- | src/test/ui/parser/recover-quantified-closure.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/parser/recover-quantified-closure.rs b/src/test/ui/parser/recover-quantified-closure.rs deleted file mode 100644 index 10af39b70..000000000 --- a/src/test/ui/parser/recover-quantified-closure.rs +++ /dev/null @@ -1,12 +0,0 @@ -fn main() { - for<'a> |x: &'a u8| *x + 1; - //~^ ERROR `for<...>` binders for closures are experimental - //~^^ ERROR implicit types in closure signatures are forbidden when `for<...>` is present -} - -enum Foo { Bar } -fn foo(x: impl Iterator<Item = Foo>) { - for <Foo>::Bar in x {} - //~^ ERROR expected one of `move`, `static`, `|` - //~^^ ERROR `for<...>` binders for closures are experimental -} |