diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2021-07-25 22:57:19 -0500 |
|---|---|---|
| committer | Caleb Cartwright <caleb.cartwright@outlook.com> | 2021-07-25 22:57:19 -0500 |
| commit | 102a06b36b8c53d228bb10481f2103e189ce5fb3 (patch) | |
| tree | f8c7fd4dd9b3c7675c381e768ee8c36127a533c0 /src/tools/rustfmt/tests/source | |
| parent | 0ded6adf6607b5c2657c930d5efebecf60578cd3 (diff) | |
| parent | 4236289b75ee55c78538c749512cdbeea5e1c332 (diff) | |
| download | rust-102a06b36b8c53d228bb10481f2103e189ce5fb3.tar.gz rust-102a06b36b8c53d228bb10481f2103e189ce5fb3.zip | |
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
Diffstat (limited to 'src/tools/rustfmt/tests/source')
| -rw-r--r-- | src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs b/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs index ea303e857de..5486877bde1 100644 --- a/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs +++ b/src/tools/rustfmt/tests/source/configs/match_arm_leading_pipes/preserve.rs @@ -26,3 +26,11 @@ fn bar() { _ => {} } } + +fn f(x: NonAscii) -> bool { + match x { + // foo + | Éfgh => true, + _ => false, + } +} \ No newline at end of file |
