Skip to content

Commit

Permalink
Resolving line length build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
imjacobclark committed Jun 8, 2016
1 parent 0379493 commit 4c5f3a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/compile-fail/issue-25579.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
}

0 comments on commit 4c5f3a6

Please sign in to comment.