2017-08-01 20:44:11 -05:00
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
fn f() {
|
2017-08-02 21:14:16 -05:00
|
|
|
let mut x: Vec<()> = Vec::new();
|
2017-08-01 20:44:11 -05:00
|
|
|
|
|
|
|
|| {
|
2017-08-02 21:14:16 -05:00
|
|
|
|| {
|
|
|
|
x.push(())
|
|
|
|
}
|
2019-09-06 08:47:50 -05:00
|
|
|
//~^^^ ERROR captured variable cannot escape `FnMut` closure body
|
2017-08-01 20:44:11 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-10-31 07:08:01 -05:00
|
|
|
fn main() {}
|