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:
parent
a8ff91a630
commit
097c8aefea
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue