blob: d8bef927fd722f4a853cdcb73c182cdaabeb5159 [file] [log] [blame]
fn with_int(f: &mut dyn FnMut(&isize)) {
}
fn main() {
let mut x: Option<&isize> = None;
with_int(&mut |y| x = Some(y));
//~^ ERROR borrowed data cannot be stored outside of its closure
}