]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/asm-out-assign-imm.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / asm-out-assign-imm.rs
index 546d402252e2701916cd63d29fa712232c47ed7a..f2629fa52ffddc6ff1ff1b8a48159e1e5363f140 100644 (file)
@@ -27,8 +27,8 @@ pub fn main() {
     foo(x);
     unsafe {
         asm!("mov $1, $0" : "=r"(x) : "r"(5));
-        //~^ ERROR re-assignment of immutable variable `x`
-        //~| NOTE re-assignment of immutable
+        //~^ ERROR cannot assign twice to immutable variable `x`
+        //~| NOTE cannot assign twice to immutable
     }
     foo(x);
 }