blob: c2927373cb8a783bd3d4183cb9c7d8a6ddba86ad [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 plain closures
let x: bool = true;
let y: bool = true;
let _ = move[x] || y;
//~^ ERROR expected one of
}