summary refs log tree commit diff
path: root/src/test/run-fail/if-cond-bot.rs
blob: c680cad258f24286b86f7a19a1d7daea63d59381 (plain)
1
2
3
4
5
6
7
8
9
// error-pattern:quux
fn my_err(s: String) -> ! {
    println!("{}", s);
    panic!("quux");
}
fn main() {
    if my_err("bye".to_string()) {
    }
}