Fix a comment
This commit is contained in:
parent
42a3f730c7
commit
e05b61ccd8
@ -4,7 +4,7 @@
|
||||
|
||||
const FOO: &(Cell<usize>, bool) = {
|
||||
let mut a = (Cell::new(0), false);
|
||||
a.1 = true; // resets `qualif(a)` to `qualif(true)`
|
||||
a.1 = true; // sets `qualif(a)` to `qualif(a) | qualif(true)`
|
||||
&{a} //~ ERROR cannot borrow a constant which may contain interior mutability
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user