mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
15 lines
313 B
Rust
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
|
|
}
|