We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ident
expr
1 parent b4674bc commit 24affdcCopy full SHA for 24affdc
src/macros/dry.md
@@ -10,7 +10,7 @@ use std::ops::{Add, Mul, Sub};
10
macro_rules! assert_equal_len {
11
// The `tt` (token tree) designator is used for
12
// operators and tokens.
13
- ($a:ident, $b:ident, $func:ident, $op:tt) => {
+ ($a:expr, $b:expr, $func:ident, $op:tt) => {
14
assert!($a.len() == $b.len(),
15
"{:?}: dimension mismatch: {:?} {:?} {:?}",
16
stringify!($func),
0 commit comments