fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
540 B18 linesraw
1error: arbitrary expressions aren't allowed in patterns
2  --> $DIR/patkind-litrange-no-expr.rs:20:13
3   |
4LL |     Arith = 1 + 1,
5   |             ^^^^^
6
7error[E0029]: only char and numeric types are allowed in range patterns
8  --> $DIR/patkind-litrange-no-expr.rs:20:13
9   |
10LL |     Arith = 1 + 1,
11   |             ^^^^^ ranges require char or numeric types
12   |
13   = note: start type: {integer}
14   = note: end type: {integer}
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0029`.