Replace most invocations of fail keyword with die! macro
This commit is contained in:
parent
2db3175c76
commit
aee7929469
331 changed files with 914 additions and 908 deletions
|
@ -17,7 +17,7 @@
|
|||
struct R { i: int }
|
||||
|
||||
fn test_rec() {
|
||||
let rs = match true { true => R {i: 100}, _ => fail };
|
||||
let rs = match true { true => R {i: 100}, _ => die!() };
|
||||
assert (rs.i == 100);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue