Skip to content

Commit 097c8ae

Browse files
committed
RIMOV, round 2
Running the same command, again: find ./ -type f -name "*.rs" -exec sed -i "s/let mut\(.*\)\[mut[ ]\?/let mut\1\[/g" {} \;
1 parent a8ff91a commit 097c8ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/compile-fail/assign-super.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
fn main() {
12-
let mut x: ~[mut int] = ~[3];
12+
let mut x: ~[int] = ~[3];
1313
let y: ~[int] = ~[3];
1414
x = y; //~ ERROR values differ in mutability
1515
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// xfail-test
1212
fn function() -> &[mut int] {
13-
let mut x: &static/[mut int] = &[1,2,3];
13+
let mut x: &static/[int] = &[1,2,3];
1414
x[0] = 12345;
1515
x //~ ERROR bad
1616
}

0 commit comments

Comments
 (0)