]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/patkind-litrange-no-expr.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / pattern / patkind-litrange-no-expr.stderr
1 error: arbitrary expressions aren't allowed in patterns
2 --> $DIR/patkind-litrange-no-expr.rs:20:13
3 |
4 LL | Arith = 1 + 1,
5 | ^^^^^
6
7 error[E0029]: only char and numeric types are allowed in range patterns
8 --> $DIR/patkind-litrange-no-expr.rs:20:13
9 |
10 LL | $( $value ..= 42 => Some($name::$variant), )* // PatKind::Range
11 | -- this is of type `{integer}`
12 ...
13 LL | Arith = 1 + 1,
14 | ^^^^^ this is of type `_` but it should be `char` or numeric
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0029`.