]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/move-closure.rs
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[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 }