Fix a comment

This commit is contained in:
Oliver Scherer 2018-11-21 11:47:16 +01:00
parent 42a3f730c7
commit e05b61ccd8

View File

@ -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
};