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