diff options
Diffstat (limited to 'src/test/compile-fail/lint-allocation.rs')
| -rw-r--r-- | src/test/compile-fail/lint-allocation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/lint-allocation.rs b/src/test/compile-fail/lint-allocation.rs index 46199fa0280..c898107f5e3 100644 --- a/src/test/compile-fail/lint-allocation.rs +++ b/src/test/compile-fail/lint-allocation.rs @@ -14,6 +14,6 @@ fn f(_: &int) {} fn g(_: &mut int) {} fn main() { - f(~1); //~ ERROR unnecessary allocation, use & instead - g(~1); //~ ERROR unnecessary allocation, use &mut instead + f(box 1); //~ ERROR unnecessary allocation, use & instead + g(box 1); //~ ERROR unnecessary allocation, use &mut instead } |
