diff options
Diffstat (limited to 'src/test/compile-fail/unsafe-alias.rs')
| -rw-r--r-- | src/test/compile-fail/unsafe-alias.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/unsafe-alias.rs b/src/test/compile-fail/unsafe-alias.rs index 905a6a922f1..0b13c5b5305 100644 --- a/src/test/compile-fail/unsafe-alias.rs +++ b/src/test/compile-fail/unsafe-alias.rs @@ -1,10 +1,10 @@ // error-pattern:may alias with argument -fn foo(x: {mutable x: int}, f: fn@()) { log(debug, x); } +fn foo(x: {mut x: int}, f: fn@()) { log(debug, x); } -fn whoknows(x: @mutable {mutable x: int}) { *x = {mutable x: 10}; } +fn whoknows(x: @mut {mut x: int}) { *x = {mut x: 10}; } fn main() { - let box = @mutable {mutable x: 1}; + let box = @mut {mut x: 1}; foo(*box, bind whoknows(box)); } |
