]> git.lizzy.rs Git - rust.git/blobdiff - tests/source/fn-custom-7.rs
Prevent duplicate comma when formatting struct pattern with ".."
[rust.git] / tests / source / fn-custom-7.rs
index 6a56c440d331d178c9c6863f7daf2a5c7f74e14d..d5330196bf79536431a3584bc4832fae6e828369 100644 (file)
@@ -1,7 +1,6 @@
-// rustfmt-fn_args_layout: Block
-// rustfmt-fn_args_density: Vertical
-// rustfmt-fn_arg_indent: Tabbed
-// rustfmt-fn_brace_style: AlwaysNextLine
+// rustfmt-normalize_comments: true
+// rustfmt-fn_args_layout: Vertical
+// rustfmt-brace_style: AlwaysNextLine
 
 // Case with only one variable.
 fn foo(a: u8) -> u8 {
@@ -17,3 +16,9 @@ fn foo(a: u8 /* Comment 1 */, b: u8 /* Comment 2 */) -> u8 {
 fn foo(/* Comment 1 */ a: u8, /* Comment 2 */ b: u8) -> u8 {
     bar()
 }
+
+trait Test {
+    fn foo(a: u8) {}
+
+    fn bar(a: u8) -> String {}
+}