diff --git a/src/test/ui/consts/partial_qualif.rs b/src/test/ui/consts/partial_qualif.rs index 7cf9ee1d94b..4ce41f80f82 100644 --- a/src/test/ui/consts/partial_qualif.rs +++ b/src/test/ui/consts/partial_qualif.rs @@ -4,7 +4,7 @@ const FOO: &(Cell, 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 };