]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/move-closure.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / 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 }