about summary refs log tree commit diff
path: root/src/test/ui/borrowck/mutability-errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/mutability-errors.rs')
-rw-r--r--src/test/ui/borrowck/mutability-errors.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/borrowck/mutability-errors.rs b/src/test/ui/borrowck/mutability-errors.rs
index 26f7f605ebe..5be0df13761 100644
--- a/src/test/ui/borrowck/mutability-errors.rs
+++ b/src/test/ui/borrowck/mutability-errors.rs
@@ -56,11 +56,11 @@ fn imm_local(x: (i32,)) {
 }
 
 fn imm_capture(x: (i32,)) {
-    || { //~ ERROR
-        x = (1,);
-        x.0 = 1;
-        &mut x;
-        &mut x.0;
+    || {
+        x = (1,); //~ ERROR
+        x.0 = 1; //~ ERROR
+        &mut x; //~ ERROR
+        &mut x.0; //~ ERROR
     };
     move || {
         x = (1,); //~ ERROR