diff options
| author | est31 <MTest31@outlook.com> | 2021-08-25 02:39:40 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2021-09-26 04:07:44 +0200 |
| commit | 6550021124451628b1efc60c59284465b109e3aa (patch) | |
| tree | 1b576863a1690a23001792194352e1dea45af78f /src/test/debuginfo/method-on-struct.rs | |
| parent | 63cc2bb3d07d6c726dfcdc5f95cbe5ed4760641a (diff) | |
| download | rust-6550021124451628b1efc60c59284465b109e3aa.tar.gz rust-6550021124451628b1efc60c59284465b109e3aa.zip | |
Remove box syntax from most places in src/test outside of the issues dir
Diffstat (limited to 'src/test/debuginfo/method-on-struct.rs')
| -rw-r--r-- | src/test/debuginfo/method-on-struct.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/debuginfo/method-on-struct.rs b/src/test/debuginfo/method-on-struct.rs index c764cf68323..deed4f9cc0a 100644 --- a/src/test/debuginfo/method-on-struct.rs +++ b/src/test/debuginfo/method-on-struct.rs @@ -121,8 +121,6 @@ // lldbr-check:(isize) arg2 = -10 // lldb-command:continue - -#![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] @@ -154,7 +152,7 @@ fn main() { let _ = stack.self_by_ref(-1, -2); let _ = stack.self_by_val(-3, -4); - let owned: Box<_> = box Struct { x: 200 }; + let owned: Box<_> = Box::new(Struct { x: 200 }); let _ = owned.self_by_ref(-5, -6); let _ = owned.self_by_val(-7, -8); let _ = owned.self_owned(-9, -10); |
