diff options
Diffstat (limited to 'tests/ui/proc-macro/issue-76182-leading-vert-pat.rs')
-rw-r--r-- | tests/ui/proc-macro/issue-76182-leading-vert-pat.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/issue-76182-leading-vert-pat.rs b/tests/ui/proc-macro/issue-76182-leading-vert-pat.rs new file mode 100644 index 000000000..7d31de1d2 --- /dev/null +++ b/tests/ui/proc-macro/issue-76182-leading-vert-pat.rs @@ -0,0 +1,16 @@ +// check-pass +// aux-build:test-macros.rs +// compile-flags: -Z span-debug +// +// Regression test for issue #76182 +// Tests that we properly handle patterns with a leading vert + +#![no_std] // Don't load unnecessary hygiene information from std +extern crate std; + +extern crate test_macros; + +#[test_macros::print_attr] +fn main() { + match () { | () => () } +} |