File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1081,7 +1081,9 @@ let mut d : @mut int; // and one of type managed mutable int
1081
1081
1082
1082
c = a; // box type is the same, okay
1083
1083
d = b; // box type is the same, okay
1084
+ ~~~~
1084
1085
1086
+ ~~~~ {.xfail-test}
1085
1087
// but b cannot be assigned to c, or a to d
1086
1088
c = b; // error
1087
1089
~~~~
@@ -1101,7 +1103,7 @@ let y = x.clone(); // y is a newly allocated box
1101
1103
let z = x; // no new memory allocated, x can no longer be used
1102
1104
~~~~
1103
1105
1104
- Since in owned boxes mutabilility is a property of the owner, not the
1106
+ Since in owned boxes mutability is a property of the owner, not the
1105
1107
box, mutable boxes may become immutable when they are moved, and vice-versa.
1106
1108
1107
1109
~~~~
You can’t perform that action at this time.
0 commit comments