// error-pattern:unresolved name: z fn main() { let x = 5; let y = fn~(move z, move x) { }; }