Skip to content

Commit 4c5f3a6

Browse files
committed
Resolving line length build fail
1 parent 0379493 commit 4c5f3a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/compile-fail/issue-25579.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ enum Sexpression {
1616
fn causes_ice(mut l: &mut Sexpression) {
1717
loop { match l {
1818
&mut Sexpression::Num(ref mut n) => {},
19-
&mut Sexpression::Cons(ref mut expr) => { //~ ERROR cannot borrow `l.0` as mutable more than once at a time [E0499]
20-
//~| ERROR cannot borrow `l.0` as mutable more than once at a time [E0499]
21-
l = &mut **expr; //~ ERROR cannot assign to `l` because it is borrowed [E0506]
19+
&mut Sexpression::Cons(ref mut expr) => { //~ ERROR cannot borrow `l.0`
20+
//~| ERROR cannot borrow `l.0`
21+
l = &mut **expr; //~ ERROR cannot assign to `l`
2222
}
2323
}}
2424
}
2525

2626
fn main() {
27-
}
27+
}

0 commit comments

Comments
 (0)