1 error: arbitrary expressions aren't allowed in patterns
2 --> $DIR/patkind-litrange-no-expr.rs:20:13
7 error[E0029]: only char and numeric types are allowed in range patterns
8 --> $DIR/patkind-litrange-no-expr.rs:20:13
10 LL | $( $value ..= 42 => Some($name::$variant), )* // PatKind::Range
11 | -- this is of type `{integer}`
14 | ^^^^^ this is of type `_` but it should be `char` or numeric
16 error: aborting due to 2 previous errors
18 For more information about this error, try `rustc --explain E0029`.