testsuite: Eliminate uses of structural records from most run-pass tests
Except the pipes tests (that needs a snapshot)
This commit is contained in:
parent
413be829eb
commit
6d4907a742
119 changed files with 605 additions and 437 deletions
|
@ -13,9 +13,12 @@
|
|||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for if as expressions returning structural types
|
||||
// Tests for if as expressions returning nominal types
|
||||
|
||||
struct I { i: int }
|
||||
|
||||
fn test_rec() {
|
||||
let rs = if true { {i: 100} } else { {i: 101} };
|
||||
let rs = if true { I {i: 100} } else { I {i: 101} };
|
||||
assert (rs.i == 100);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue