]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/preserve.rs
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
[rust.git] / src / tools / rustfmt / tests / target / configs / match_arm_leading_pipes / preserve.rs
index 2beb1f5d8133d2764a2524c32c601b371c78b7ce..4775575842ab99dd1b85248709808ee2d5256d5f 100644 (file)
@@ -25,3 +25,11 @@ fn bar() {
         _ => {}
     }
 }
+
+fn f(x: NonAscii) -> bool {
+    match x {
+        // foo
+        | Éfgh => true,
+        _ => false,
+    }
+}