diff options
Diffstat (limited to 'src/test/compile-fail/static-mut-not-constant.rs')
| -rw-r--r-- | src/test/compile-fail/static-mut-not-constant.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/compile-fail/static-mut-not-constant.rs b/src/test/compile-fail/static-mut-not-constant.rs index 90dabb7e3a2..927006adc9e 100644 --- a/src/test/compile-fail/static-mut-not-constant.rs +++ b/src/test/compile-fail/static-mut-not-constant.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -static mut a: ~int = ~3; //~ ERROR: mutable static items are not allowed to have owned pointers + +static mut a: Box<int> = box 3; +//~^ ERROR mutable static items are not allowed to have owned pointers fn main() {} |
