]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/formatting.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / formatting.rs
index 904c05b068c9df9d46b804404114d983a8ac6b34..149f1da93966c5d6d9524e41029c0b04e2eba4d7 100644 (file)
@@ -4,8 +4,11 @@
 #![allow(clippy::if_same_then_else)]
 #![allow(clippy::deref_addrof)]
 
-fn foo() -> bool { true }
+fn foo() -> bool {
+    true
+}
 
+#[rustfmt::skip]
 fn main() {
     // weird `else` formatting:
     if foo() {