mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
7 lines
190 B
Rust
7 lines
190 B
Rust
// Regression test for issue #24986
|
|
// Make sure that the span of a closure marked `move` begins at the `move` keyword.
|
|
|
|
fn main() {
|
|
let x: () = move || (); //~ ERROR mismatched types
|
|
}
|