RIMOV, round 2

Running the same command, again:

find ./ -type f -name "*.rs" -exec sed -i "s/let mut\(.*\)\[mut[ ]\?/let
mut\1\[/g" {} \;
This commit is contained in:
Ben Striegel 2013-01-29 21:04:59 -05:00
parent a8ff91a630
commit 097c8aefea
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
// except according to those terms.
fn main() {
let mut x: ~[mut int] = ~[3];
let mut x: ~[int] = ~[3];
let y: ~[int] = ~[3];
x = y; //~ ERROR values differ in mutability
}

View file

@ -10,7 +10,7 @@
// xfail-test
fn function() -> &[mut int] {
let mut x: &static/[mut int] = &[1,2,3];
let mut x: &static/[int] = &[1,2,3];
x[0] = 12345;
x //~ ERROR bad
}