]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/patkind-litrange-no-expr.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.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: arbitrary expressions aren't allowed in patterns
8   --> $DIR/patkind-litrange-no-expr.rs:20:13
9    |
10 LL |     Arith = 1 + 1,
11    |             ^^^^^
12
13 error[E0029]: only `char` and numeric types are allowed in range patterns
14   --> $DIR/patkind-litrange-no-expr.rs:20:13
15    |
16 LL |                 $( $value ..= 42 => Some($name::$variant), )* // PatKind::Range
17    |                               -- this is of type `{integer}`
18 ...
19 LL |     Arith = 1 + 1,
20    |             ^^^^^ this is of type `_` but it should be `char` or numeric
21
22 error: aborting due to 3 previous errors
23
24 For more information about this error, try `rustc --explain E0029`.