mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
14 lines
392 B
Rust
14 lines
392 B
Rust
//@ check-pass
|
|
//@ ignore-test (#155050): currently ICEs instead of reporting a name-resolution error
|
|
// FIXME(TaKO8Ki): Remove this ignore once closure-local names in `move(expr)` produce a real
|
|
// diagnostic instead of hitting the current `Res::Err` ICE path.
|
|
#![allow(incomplete_features)]
|
|
#![feature(move_expr)]
|
|
|
|
fn main() {
|
|
let _c = || {
|
|
let x = 3;
|
|
move(x);
|
|
};
|
|
}
|