Skip to content

Commit 4d80e03

Browse files
committed
Fix box-protocol for run-make tests.
1 parent 6caa526 commit 4d80e03

File tree

1 file changed

+4
-3
lines changed
  • src/test/run-make/save-analysis

1 file changed

+4
-3
lines changed

src/test/run-make/save-analysis/foo.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ fn hello<X: SomeTrait>((z, a) : (u32, String), ex: X) {
253253
let x = 32.0f32;
254254
let _ = (x + ((x * x) + 1.0).sqrt()).ln();
255255

256-
let s: Box<SomeTrait> = box some_fields {field1: 43};
256+
let b: Box<some_fields> = box some_fields {field1: 43};
257+
let s: Box<SomeTrait> = b;
257258
let s2: Box<some_fields> = box some_fields {field1: 43};
258-
let s3 = box nofields;
259+
let s3: Box<_> = box nofields;
259260

260261
s.Method(43);
261262
s3.Method(43);
@@ -288,7 +289,7 @@ pub struct blah {
288289
}
289290

290291
fn main() { // foo
291-
let s = box some_fields {field1: 43};
292+
let s: Box<_> = box some_fields {field1: 43};
292293
hello((43, "a".to_string()), *s);
293294
sub::sub2::hello();
294295
sub2::sub3::hello();

0 commit comments

Comments
 (0)