rust/src/test/run-fail/die-macro-pure.rs
Björn Steinbrink bdc182cc41 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-14 16:36:23 +02:00

10 lines
77 B
Rust

// error-pattern:test
fn f() {
fail!("test");
}
fn main() {
f();
}