blob: c9428770538f7b2f99ded6a79fc562d5253fcb99 [file] [edit]
#![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 closures, `async`, `gen`, and `async gen` blocks
let x: bool = true;
let y: bool = true;
let _ = move[x] || y;
//~^ ERROR expected one of
}