]> git.lizzy.rs Git - rust.git/commitdiff
Fix a comment
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Wed, 21 Nov 2018 10:47:16 +0000 (11:47 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Wed, 21 Nov 2018 10:47:16 +0000 (11:47 +0100)
src/test/ui/consts/partial_qualif.rs

index 7cf9ee1d94b0e69f8b7ce2cee7525dca89b9ac59..4ce41f80f82c8dff332491835619331abdf21e40 100644 (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
 };