diff options
Diffstat (limited to 'tests/ui/expr/if/if-cond-bot.rs')
-rw-r--r-- | tests/ui/expr/if/if-cond-bot.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/expr/if/if-cond-bot.rs b/tests/ui/expr/if/if-cond-bot.rs new file mode 100644 index 000000000..bcd114678 --- /dev/null +++ b/tests/ui/expr/if/if-cond-bot.rs @@ -0,0 +1,13 @@ +// run-fail +// error-pattern:quux +// ignore-emscripten no processes + +fn my_err(s: String) -> ! { + println!("{}", s); + panic!("quux"); +} + +fn main() { + if my_err("bye".to_string()) { + } +} |