1 #![feature(rustc_attrs)]
3 // This test checks that a warning occurs with migrate mode.
7 //~^ ERROR compilation successful
11 //~^ WARNING captured variable cannot escape `FnMut` closure body
12 //~| WARNING this error has been downgraded to a warning
13 //~| WARNING this warning will become a hard error in the future