]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/hard-tabs.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / hard-tabs.rs
index c101f0bbf3c129f0567f1b150a84ffb2da73a103..cf96392036b19451a6978d54d0be3d4e337a170a 100644 (file)
@@ -1,3 +1,4 @@
+// rustfmt-wrap_comments: true
 // rustfmt-hard_tabs: true
 
 fn main() {
@@ -28,8 +29,8 @@ fn foo(a: i32,
        let str = "AAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAA\
                   AAAAAAAAAAAAaAa";
 
-       if let (some_very_large, tuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuple) =
-              1 + 2 + 3 {
+       if let (some_very_large,
+               tuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuple) = 1 + 2 + 3 {
        }
 
        if cond() {
@@ -68,7 +69,8 @@ fn generic<T>(arg: T) -> &SomeType
                            C,
                            D,
                            // pre comment
-                           E /* last comment */) -> &SomeType
+                           E /* last comment */)
+                           -> &SomeType
        {
                arg(a, b, c, d, e)
        }