rust/tests/ui/closures/issue-67123.rs
2023-01-11 09:32:08 +00:00

6 lines
82 B
Rust

fn foo<T>(t: T) {
|| { t; t; }; //~ ERROR: use of moved value
}
fn main() {}