|
116 | 116 | // lldbr-check:(f64) *f64_ref = 3.5
|
117 | 117 |
|
118 | 118 | #![allow(unused_variables)]
|
119 |
| -#![feature(box_syntax)] |
120 | 119 | #![feature(omit_gdb_pretty_printer_section)]
|
121 | 120 | #![omit_gdb_pretty_printer_section]
|
122 | 121 |
|
123 | 122 | fn main() {
|
124 |
| - let bool_box: Box<bool> = box true; |
| 123 | + let bool_box: Box<bool> = Box::new(true); |
125 | 124 | let bool_ref: &bool = &*bool_box;
|
126 | 125 |
|
127 |
| - let int_box: Box<isize> = box -1; |
| 126 | + let int_box: Box<isize> = Box::new(-1); |
128 | 127 | let int_ref: &isize = &*int_box;
|
129 | 128 |
|
130 |
| - let char_box: Box<char> = box 'a'; |
| 129 | + let char_box: Box<char> = Box::new('a'); |
131 | 130 | let char_ref: &char = &*char_box;
|
132 | 131 |
|
133 |
| - let i8_box: Box<i8> = box 68; |
| 132 | + let i8_box: Box<i8> = Box::new(68); |
134 | 133 | let i8_ref: &i8 = &*i8_box;
|
135 | 134 |
|
136 |
| - let i16_box: Box<i16> = box -16; |
| 135 | + let i16_box: Box<i16> = Box::new(-16); |
137 | 136 | let i16_ref: &i16 = &*i16_box;
|
138 | 137 |
|
139 |
| - let i32_box: Box<i32> = box -32; |
| 138 | + let i32_box: Box<i32> = Box::new(-32); |
140 | 139 | let i32_ref: &i32 = &*i32_box;
|
141 | 140 |
|
142 |
| - let i64_box: Box<i64> = box -64; |
| 141 | + let i64_box: Box<i64> = Box::new(-64); |
143 | 142 | let i64_ref: &i64 = &*i64_box;
|
144 | 143 |
|
145 |
| - let uint_box: Box<usize> = box 1; |
| 144 | + let uint_box: Box<usize> = Box::new(1); |
146 | 145 | let uint_ref: &usize = &*uint_box;
|
147 | 146 |
|
148 |
| - let u8_box: Box<u8> = box 100; |
| 147 | + let u8_box: Box<u8> = Box::new(100); |
149 | 148 | let u8_ref: &u8 = &*u8_box;
|
150 | 149 |
|
151 |
| - let u16_box: Box<u16> = box 16; |
| 150 | + let u16_box: Box<u16> = Box::new(16); |
152 | 151 | let u16_ref: &u16 = &*u16_box;
|
153 | 152 |
|
154 |
| - let u32_box: Box<u32> = box 32; |
| 153 | + let u32_box: Box<u32> = Box::new(32); |
155 | 154 | let u32_ref: &u32 = &*u32_box;
|
156 | 155 |
|
157 |
| - let u64_box: Box<u64> = box 64; |
| 156 | + let u64_box: Box<u64> = Box::new(64); |
158 | 157 | let u64_ref: &u64 = &*u64_box;
|
159 | 158 |
|
160 |
| - let f32_box: Box<f32> = box 2.5; |
| 159 | + let f32_box: Box<f32> = Box::new(2.5); |
161 | 160 | let f32_ref: &f32 = &*f32_box;
|
162 | 161 |
|
163 |
| - let f64_box: Box<f64> = box 3.5; |
| 162 | + let f64_box: Box<f64> = Box::new(3.5); |
164 | 163 | let f64_ref: &f64 = &*f64_box;
|
165 | 164 |
|
166 | 165 | zzz(); // #break
|
|
0 commit comments