1 // Ensure that we point the user to the erroneous borrow but not to any subsequent borrows of that
6 let p = &mut a; //~ ERROR mutable references are not allowed in constants
14 const _: std::cell::Cell<i32> = {
15 let mut a = std::cell::Cell::new(5);
16 let p = &a; //~ ERROR cannot borrow a constant which may contain interior mutability