mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
23 lines
421 B
Rust
23 lines
421 B
Rust
#![feature(ergonomic_clones)]
|
|
#![allow(incomplete_features)]
|
|
|
|
fn parse1() {
|
|
|| use {
|
|
//~^ ERROR expected one of `async`, `|`, or `||`, found `{`
|
|
};
|
|
}
|
|
|
|
fn parse2() {
|
|
move use || {
|
|
//~^ ERROR expected one of `async`, `|`, or `||`, found keyword `use`
|
|
};
|
|
}
|
|
|
|
fn parse3() {
|
|
use move || {
|
|
//~^ ERROR expected one of `async`, `|`, or `||`, found keyword `move`
|
|
};
|
|
}
|
|
|
|
fn main() {}
|