]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/move-closure.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / move-closure.rs
1 // Regression test for issue #24986
2 // Make sure that the span of a closure marked `move` begins at the `move` keyword.
3
4 fn main() {
5     let x: () = move || (); //~ ERROR mismatched types
6 }