]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/move-closure.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[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 }