X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftools%2Frustfmt%2Ftests%2Fsource%2Fconfigs%2Fmatch_arm_leading_pipes%2Fpreserve.rs;fp=src%2Ftools%2Frustfmt%2Ftests%2Fsource%2Fconfigs%2Fmatch_arm_leading_pipes%2Fpreserve.rs;h=5486877bde1906dcdbf3b6cf7450a3ca16e0be47;hb=102a06b36b8c53d228bb10481f2103e189ce5fb3;hp=ea303e857def5a4ac393d042f1bf3f8bd278ebc3;hpb=0ded6adf6607b5c2657c930d5efebecf60578cd3;p=rust.git 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