rust/tests/ui/span/move-closure.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
190 B
Rust
Raw Normal View History

// Regression test for issue #24986
// 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
}