]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/capture-unglued-token.rs
Auto merge of #80005 - ssomers:btree_cleanup_3, r=Mark-Simulacrum
[rust.git] / src / test / ui / proc-macro / capture-unglued-token.rs
1 // aux-build:test-macros.rs
2 // compile-flags: -Z span-debug
3 // check-pass
4
5 // Tests that we properly handle parsing a nonterminal
6 // where we have two consecutive angle brackets (one inside
7 // the nonterminal, and one outside)
8
9 #![no_std] // Don't load unnecessary hygiene information from std
10 extern crate std;
11 extern crate test_macros;
12
13 macro_rules! trailing_angle {
14     (Option<$field:ty>) => {
15         test_macros::print_bang_consume!($field);
16     }
17 }
18
19 trailing_angle!(Option<Vec<u8>>);
20 fn main() {}