Skip to content

Commit a90f9a9

Browse files
committed
Fix pretty tests
1 parent 0129c9d commit a90f9a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/pretty/block-disambig.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use std::cell::Cell;
99

10-
fn test1() { let val = &0; { } *val; }
10+
fn test1() { let val = &0; { } let _ = *val; }
1111

1212
fn test2() -> isize { let val = &0; { } *val }
1313

src/test/pretty/unary-op-disambig.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ fn alt_semi() -> isize { match true { true => { f() } _ => { } }; -1 }
1616

1717
fn alt_no_semi() -> isize { (match true { true => { 0 } _ => { 1 } }) - 1 }
1818

19-
fn stmt() { { f() }; -1; }
19+
fn stmt() { { f() }; let _ = -1; }

0 commit comments

Comments
 (0)