We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a3f73 commit e05b61cCopy full SHA for e05b61c
src/test/ui/consts/partial_qualif.rs
@@ -4,7 +4,7 @@ use std::cell::Cell;
4
5
const FOO: &(Cell<usize>, bool) = {
6
let mut a = (Cell::new(0), false);
7
- a.1 = true; // resets `qualif(a)` to `qualif(true)`
+ a.1 = true; // sets `qualif(a)` to `qualif(a) | qualif(true)`
8
&{a} //~ ERROR cannot borrow a constant which may contain interior mutability
9
};
10
0 commit comments