rust/src/test/run-fail/if-cond-bot.rs

4 lines
115 B
Rust

// error-pattern:quux
fn my_err(s: ~str) -> ! { log(error, s); fail ~"quux"; }
fn main() { if my_err(~"bye") { } }