Sign in
android
/
toolchain
/
rustc
/
32f7835b4f844d645621e83c89a3178ef87b0d69
/
.
/
src
/
test
/
ui
/
parser
/
recover-quantified-closure.rs
blob: 381324738f62b851d53160978a03f6d2541e0a13 [
file
] [
log
] [
blame
]
fn
main
()
{
for
<
'a> |x: &'
a u8
|
*
x
+
1
;
//~^ ERROR cannot introduce explicit parameters for a closure
}
enum
Foo
{
Bar
}
fn
foo
(
x
:
impl
Iterator
<
Item
=
Foo
>)
{
for
<
Foo
>::
Bar
in x
{}
//~^ ERROR expected one of `move`, `static`, `|`
}