]> git.lizzy.rs Git - rust.git/commitdiff
Resolving line length build fail
authorJacob Clark <jacob.jh.clark@googlemail.com>
Wed, 8 Jun 2016 12:26:18 +0000 (13:26 +0100)
committerJacob Clark <jacob.jh.clark@googlemail.com>
Wed, 8 Jun 2016 12:26:18 +0000 (13:26 +0100)
src/test/compile-fail/issue-25579.rs

index 95b07b208d15b7395446309b50037ae6c1d4ddfe..849c9aa18c905a2ca39d4f44c8aca1537943e894 100644 (file)
@@ -16,12 +16,12 @@ enum Sexpression {
 fn causes_ice(mut l: &mut Sexpression) {
     loop { match l {
         &mut Sexpression::Num(ref mut n) => {},
-        &mut Sexpression::Cons(ref mut expr) => { //~ ERROR cannot borrow `l.0` as mutable more than once at a time [E0499]
-            //~| ERROR cannot borrow `l.0` as mutable more than once at a time [E0499]
-            l = &mut **expr; //~ ERROR cannot assign to `l` because it is borrowed [E0506]
+        &mut Sexpression::Cons(ref mut expr) => { //~ ERROR cannot borrow `l.0`
+            //~| ERROR cannot borrow `l.0`
+            l = &mut **expr; //~ ERROR cannot assign to `l`
         }
     }}
 }
 
 fn main() {
-}
\ No newline at end of file
+}