]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/issue-57989.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / nll / issue-57989.rs
index c410f0b0bfb4da6fd4d8b73d1ec5298cf5666c8a..8f3dec454d5ff9640212bd710a7b37c9a06bcfdb 100644 (file)
@@ -2,7 +2,7 @@
 
 fn f(x: &i32) {
     let g = &x;
-    *x = 0;     //~ ERROR cannot assign to `*x` which is behind a `&` reference
+    *x = 0;     //~ ERROR cannot assign to `*x`, which is behind a `&` reference
                 //~| ERROR cannot assign to `*x` because it is borrowed
     g;
 }