From e05b61ccd8fcb4bb4fd12085fc13522b940e7618 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Wed, 21 Nov 2018 11:47:16 +0100 Subject: [PATCH] Fix a comment --- src/test/ui/consts/partial_qualif.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ui/consts/partial_qualif.rs b/src/test/ui/consts/partial_qualif.rs index 7cf9ee1d94b0..4ce41f80f82c 100644 --- a/src/test/ui/consts/partial_qualif.rs +++ b/src/test/ui/consts/partial_qualif.rs @@ -4,7 +4,7 @@ use std::cell::Cell; 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 };