Remove die!, raplace invocations with fail! Issue #4524 pt 3
This commit is contained in:
parent
c51ecc3223
commit
4445b38df2
363 changed files with 910 additions and 906 deletions
|
@ -17,7 +17,7 @@
|
|||
struct R { i: int }
|
||||
|
||||
fn test_rec() {
|
||||
let rs = match true { true => R {i: 100}, _ => die!() };
|
||||
let rs = match true { true => R {i: 100}, _ => fail!() };
|
||||
assert (rs.i == 100);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue