]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/fn.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / fn.rs
index 0ae9fd7ef1fc871aa5166a9c25fbda2137acd2fd..3157c2f9881a72d7cfc9c4c4aa4acf5672cc87ce 100644 (file)
@@ -85,3 +85,9 @@ fn inner() {
     #![inline]
     x
 }
+
+#[cfg_attr(rustfmt, rustfmt_skip)]
+fn foo(a: i32) -> i32 {
+    // comment
+    if a > 0 { 1 } else { 2 }
+}