rust/tests/ui/closures/issue-67123.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
82 B
Rust
Raw Normal View History

2019-12-08 05:54:54 -06:00
fn foo<T>(t: T) {
|| { t; t; }; //~ ERROR: use of moved value
}
fn main() {}