summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/issue-67123.rs
blob: 014c530e6d7dc632ff625d87edf145f6cb8c5923 (plain)
1
2
3
4
5
fn foo<T>(t: T) {
    || { t; t; }; //~ ERROR: use of moved value
}

fn main() {}