]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/macro-pat.rs
21 macro_rules
! indirect
{
27 macro_rules
! ident_pat
{
33 fn f(c
: Option
<char>) -> usize {
42 assert_eq
!(1, f(Some('x'
)));
43 assert_eq
!(2, f(Some('y'
)));
44 assert_eq
!(3, f(None
));
46 assert_eq
!(1, match Some('x'
) {
51 assert_eq
!(1, match Some('x'
) {
52 some
!(char_x
!()) => 1,
56 assert_eq
!(1, match Some('x'
) {
62 let ident_pat
!(x
) = 2;