mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
15 lines
347 B
Rust
15 lines
347 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 closures, `async`, `gen`, and `async gen` blocks
|
|
|
|
let x: bool = true;
|
|
let y: bool = true;
|
|
let _ = move[x] || y;
|
|
//~^ ERROR expected one of
|
|
}
|