]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-51515.rs
Rollup merge of #87941 - GuillaumeGomez:fix-rustdoc-js-tool, r=notriddle
[rust.git] / src / test / ui / issues / issue-51515.rs
index 8eab7b2fa3ae9b215555e4633a4203d6619bee1b..54fd176de75f033f20935e787431d6a88d3be638 100644 (file)
@@ -3,10 +3,10 @@ fn main() {
     //~^ HELP consider changing this to be a mutable reference
     //~| SUGGESTION &mut 16
     *foo = 32;
-    //~^ ERROR cannot assign to `*foo` which is behind a `&` reference
+    //~^ ERROR cannot assign to `*foo`, which is behind a `&` reference
     let bar = foo;
     //~^ HELP consider changing this to be a mutable reference
     //~| SUGGESTION &mut i32
     *bar = 64;
-    //~^ ERROR cannot assign to `*bar` which is behind a `&` reference
+    //~^ ERROR cannot assign to `*bar`, which is behind a `&` reference
 }