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