syntax: Eliminate 'mutable' keyword. Closes #2254
This commit is contained in:
parent
734494a04d
commit
7235f3cee2
9 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// error-pattern:unsatisfied precondition
|
||||
class cat {
|
||||
priv {
|
||||
let mutable meows : uint;
|
||||
let mut meows : uint;
|
||||
}
|
||||
|
||||
let how_hungry : int;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// error-pattern:assigning to immutable field
|
||||
class cat {
|
||||
priv {
|
||||
let mutable meows : uint;
|
||||
let mut meows : uint;
|
||||
}
|
||||
|
||||
let how_hungry : int;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// error-pattern:assigning to immutable field
|
||||
class cat {
|
||||
priv {
|
||||
let mutable meows : uint;
|
||||
let mut meows : uint;
|
||||
}
|
||||
|
||||
let how_hungry : int;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue