]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-76182-leading-vert-pat.rs
Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco
[rust.git] / tests / ui / proc-macro / issue-76182-leading-vert-pat.rs
1 // check-pass
2 // aux-build:test-macros.rs
3 // compile-flags: -Z span-debug
4 //
5 // Regression test for issue #76182
6 // Tests that we properly handle patterns with a leading vert
7
8 #![no_std] // Don't load unnecessary hygiene information from std
9 extern crate std;
10
11 extern crate test_macros;
12
13 #[test_macros::print_attr]
14 fn main() {
15     match () { | () => () }
16 }