Macro moniker::assert_pattern_eq [−][src]
macro_rules! assert_pattern_eq { ($left:expr, $right:expr) => { ... }; ($left:expr, $right:expr,) => { ... }; ($left:expr, $right:expr, $($arg:tt)+) => { ... }; }
Assert that two expressions are alpha equivalent to each other (using
BoundPattern::pattern_eq
).
On panic, this macro will print the values of the expressions with their debug representations.
Like assert!
, this macro has a second form, where a custom
panic message can be provided.