blob: 32c68e69f4beda7d4d4ba48908ce00ae90aaf899 [file] [log] [blame]
use std::cell::Cell;
const FOO: &(Cell<usize>, bool) = {
let mut a = (Cell::new(0), false);
a.1 = true; // sets `qualif(a)` to `qualif(a) | qualif(true)`
&{a} //~ ERROR cannot borrow a constant which may contain interior mutability
};
fn main() {}