RIMOV, round 7
find ./ -type f -name "*.rs" -exec sed -i "s/ mut \([a-zA-Z_]\+\):
~\[mut / mut \1: ~\[/g" {} \;
This commit is contained in:
parent
1c9b5a83b2
commit
b4f47eca2a
5 changed files with 5 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ fn main() {
|
|||
// Note: explicit type annot is required here
|
||||
// because otherwise the inference gets smart
|
||||
// and assigns a type of ~[mut ~[const int]].
|
||||
let mut v: ~[mut ~[mut int]] = ~[~[0]];
|
||||
let mut v: ~[~[mut int]] = ~[~[0]];
|
||||
|
||||
fn f(&&v: ~[mut ~[const int]]) {
|
||||
v[0] = ~[3]
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ fn main() {
|
|||
// Note: explicit type annot is required here
|
||||
// because otherwise the inference gets smart
|
||||
// and assigns a type of ~[mut ~[const int]].
|
||||
let mut v: ~[mut ~[mut ~[int]]] = ~[~[~[0]]];
|
||||
let mut v: ~[~[mut ~[int]]] = ~[~[~[0]]];
|
||||
|
||||
fn f(&&v: ~[mut ~[mut ~[const int]]]) {
|
||||
v[0][1] = ~[mut 3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue