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
deddb009f0
rust
/
src
/
test
/
run-fail
/
die-macro.rs
6 lines
56 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
fn
main
(
)
{
Use static string with fail!() and remove fail!(fmt!()) fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-05 17:18:51 -05:00
fail!
(
"
test
"
)
;
librustc: Replace `impl Type : Trait` with `impl Trait for Type`. rs=implflipping
2013-02-14 13:47:00 -06:00
}
Reference in New Issue
Copy Permalink