mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
rewrite 'mutable &' as '& mutable', corresponding to grammar shift.
This commit is contained in:
parent
e828b2a94d
commit
8e4a10790f
@ -1,4 +1,4 @@
|
||||
fn incr(mutable &int x) -> bool {
|
||||
fn incr(& mutable int x) -> bool {
|
||||
x += 1;
|
||||
check (false);
|
||||
ret false;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
type point = rec(int x, int y, mutable int z);
|
||||
|
||||
fn f(mutable &point p) {
|
||||
fn f(& mutable point p) {
|
||||
p.z = 13;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user