Skip to content

Commit e05b61c

Browse files
committed
Fix a comment
1 parent 42a3f73 commit e05b61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/consts/partial_qualif.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::cell::Cell;
44

55
const FOO: &(Cell<usize>, bool) = {
66
let mut a = (Cell::new(0), false);
7-
a.1 = true; // resets `qualif(a)` to `qualif(true)`
7+
a.1 = true; // sets `qualif(a)` to `qualif(a) | qualif(true)`
88
&{a} //~ ERROR cannot borrow a constant which may contain interior mutability
99
};
1010

0 commit comments

Comments
 (0)