Add tracking issue for the matches!
macro
https://github.com/rust-lang/rust/issues/65721
This commit is contained in:
parent
7472cd46aa
commit
f7ebe19338
@ -252,7 +252,7 @@ macro_rules! debug_assert_ne {
|
||||
/// assert!(matches!(bar, Some(x) if x > 2));
|
||||
/// ```
|
||||
#[macro_export]
|
||||
#[unstable(feature = "matches_macro", issue = "0")]
|
||||
#[unstable(feature = "matches_macro", issue = "65721")]
|
||||
macro_rules! matches {
|
||||
($expression:expr, $( $pattern:pat )|+ $( if $guard: expr )?) => {
|
||||
match $expression {
|
||||
|
Loading…
x
Reference in New Issue
Block a user