about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-borrow-mut-object-twice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-borrow-mut-object-twice.rs')
-rw-r--r--src/test/compile-fail/borrowck-borrow-mut-object-twice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/borrowck-borrow-mut-object-twice.rs b/src/test/compile-fail/borrowck-borrow-mut-object-twice.rs
index 502d7e017b5..c338aac2ddf 100644
--- a/src/test/compile-fail/borrowck-borrow-mut-object-twice.rs
+++ b/src/test/compile-fail/borrowck-borrow-mut-object-twice.rs
@@ -18,7 +18,7 @@ trait Foo {
 
 fn test(x: &mut Foo) {
     let _y = x.f1();
-    x.f2(); //~ ERROR cannot borrow `*x` as mutable more than once at a time
+    x.f2(); //~ ERROR cannot borrow `*x` because it is already borrowed as mutable
 }
 
 fn main() {}