blob: 1f8fe9a4439b9f0a48fb0148dee10234a840c7e0 [file] [log] [blame]
use std::usize;
struct Dog {
food: usize,
}
impl Dog {
pub fn chase_cat(&mut self) {
let _f = || {
let p: &'static mut usize = &mut self.food; //~ ERROR cannot infer
*p = 3;
};
}
}
fn main() {
}