// Check that we check fns appearing in constant declarations. // Issue #22382. // How about mutating an immutable vector? const MUTATE: fn(&Vec) = { fn broken(x: &Vec) { x.push(format!("this is broken")); //~^ ERROR cannot borrow } broken }; fn main() { }