This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
8ec6f43d6c
rust
/
src
/
test
/
run-fail
/
die-macro-expr.rs
5 lines
69 B
Rust
Raw
Normal View
History
Unescape
Escape
Adjust the die macro to only accept ~str and to work in statement position
2012-12-10 17:22:10 -08:00
// error-pattern:test
fn
main
(
)
{
Remove die!, raplace invocations with fail! Issue #4524 pt 3
2013-02-11 19:26:38 -08:00
let
i
:
int
=
fail!
(
~
"
test
"
)
;
Adjust the die macro to only accept ~str and to work in statement position
2012-12-10 17:22:10 -08:00
}
Reference in a new issue
Copy permalink