blob: 18438cc576b19134411261bdd1d470553079f1c7 [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 interior mutable shared borrows of temporaries
};
fn main() {}