This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
8ec6f43d6c
rust
/
src
/
test
/
run-fail
/
die-macro-pure.rs
9 lines
82 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 19:22:10 -06:00
// error-pattern:test
pure
fn
f
(
)
{
Remove die!, raplace invocations with fail! Issue #4524 pt 3
2013-02-11 21:26:38 -06:00
fail!
(
~
"
test
"
)
;
Adjust the die macro to only accept ~str and to work in statement position
2012-12-10 19:22:10 -06:00
}
fn
main
(
)
{
f
(
)
;
}
Reference in New Issue
Copy Permalink