]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/patkind-litrange-no-expr.stderr
Rollup merge of #56363 - Lucretiel:patch-3, r=shepmaster
[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:30:13
3    |
4 LL |     Arith = 1 + 1, //~ ERROR arbitrary expressions aren't allowed in patterns
5    |             ^^^^^
6
7 error[E0029]: only char and numeric types are allowed in range patterns
8   --> $DIR/patkind-litrange-no-expr.rs:30:13
9    |
10 LL |     Arith = 1 + 1, //~ ERROR arbitrary expressions aren't allowed in patterns
11    |             ^^^^^ ranges require char or numeric types
12    |
13    = note: start type: {integer}
14    = note: end type: {integer}
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0029`.