mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user