Files
rust/tests/ui/move-expr/parse-ambiguity-errors.rs
T
2026-05-07 22:23:38 +09:00

15 lines
313 B
Rust

#![allow(incomplete_features)]
#![feature(move_expr)]
fn main() {
let x: bool = true;
let y: bool = true;
let _ = move(x) || y;
//~^ ERROR `move(expr)` is only supported in plain closures
let x: bool = true;
let y: bool = true;
let _ = move[x] || y;
//~^ ERROR expected one of
}