summary refs log tree commit diff
path: root/src/test/ui/pattern/patkind-litrange-no-expr.stderr
blob: 70dd1a9263f6f315689b9de73cfa499559f88eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error: arbitrary expressions aren't allowed in patterns
  --> $DIR/patkind-litrange-no-expr.rs:20:13
   |
LL |     Arith = 1 + 1,
   |             ^^^^^

error: arbitrary expressions aren't allowed in patterns
  --> $DIR/patkind-litrange-no-expr.rs:20:13
   |
LL |     Arith = 1 + 1,
   |             ^^^^^

error[E0029]: only char and numeric types are allowed in range patterns
  --> $DIR/patkind-litrange-no-expr.rs:20:13
   |
LL |                 $( $value ..= 42 => Some($name::$variant), )* // PatKind::Range
   |                               -- this is of type `{integer}`
...
LL |     Arith = 1 + 1,
   |             ^^^^^ this is of type `_` but it should be `char` or numeric

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0029`.