Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
macros
/
edition-macro-pats.rs
blob: ea1f9bff6bf7063d647ea50bf5236419ec158f95 [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
or_patterns
)]
#![
feature
(
edition_macro_pats
)]
macro_rules
!
foo
{
(
a $x
:
pat2018
)
=>
{};
(
b $x
:
pat2021
)
=>
{};
}
fn
main
()
{
foo
!(
a
None
);
foo
!(
b
1
|
2
);
}