]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-fail/if-cond-bot.rs
Imported Upstream version 1.11.0+dfsg1
[rustc.git] / src / test / run-fail / if-cond-bot.rs
index f38b00ab46d90ee92785f022456ee5a04393a025..203bc8fc65ff8a17f5ff7d7770473e766eb3074f 100644 (file)
@@ -9,5 +9,11 @@
 // except according to those terms.
 
 // error-pattern:quux
-fn my_err(s: String) -> ! { println!("{}", s); panic!("quux"); }
-fn main() { if my_err("bye".to_string()) { } }
+fn my_err(s: String) -> ! {
+    println!("{}", s);
+    panic!("quux");
+}
+fn main() {
+    if my_err("bye".to_string()) {
+    }
+}