about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-21 11:47:16 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-21 11:47:16 +0100
commite05b61ccd8fcb4bb4fd12085fc13522b940e7618 (patch)
treee1b571a5257979c62ff117a26365717b52c733f5
parent42a3f730c75c4e4b62eb58d4e09a8ec833e13804 (diff)
downloadrust-e05b61ccd8fcb4bb4fd12085fc13522b940e7618.tar.gz
rust-e05b61ccd8fcb4bb4fd12085fc13522b940e7618.zip
Fix a comment
-rw-r--r--src/test/ui/consts/partial_qualif.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ use std::cell::Cell;
 
 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
 };