Files
rust/tests/ui/ergonomic-clones/closure/parse.rs
T
2025-03-06 18:06:48 -03:00

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() {}