1 #![feature(rustc_attrs)]
4 // revisions: migrate nll
5 #![cfg_attr(nll, feature(nll))]
8 let mut x: Vec<()> = Vec::new();
14 //[migrate]~^^^ WARNING captured variable cannot escape `FnMut` closure body
15 //[migrate]~| WARNING this error has been downgraded to a warning
16 //[migrate]~| WARNING this warning will become a hard error in the future
17 //[nll]~^^^^^^ ERROR captured variable cannot escape `FnMut` closure body