2016-08-16 20:14:41 +09:00
|
|
|
// Regression test for issue #24986
|
2015-05-16 11:24:06 +12:00
|
|
|
// Make sure that the span of a closure marked `move` begins at the `move` keyword.
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2017-11-20 13:13:27 +01:00
|
|
|
let x: () = move || (); //~ ERROR mismatched types
|
2015-05-16 11:24:06 +12:00
|
|
|
}
|