You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ------------------------------------------- constant defined here
6
+
...
7
+
LL | match n {
8
+
| - this expression has type `i32`
9
+
LL | RANGE => {}
10
+
| ^^^^^
11
+
| |
12
+
| expected `i32`, found struct `RangeInclusive`
13
+
| `RANGE` is interpreted as a constant, not a new binding
14
+
|
15
+
= note: expected type `i32`
16
+
found struct `RangeInclusive<i32>`
17
+
= note: constants only support matching by type, if you meant to match against a range of values, consider using a range pattern like `min ..= max` in the match block
18
+
19
+
error: aborting due to previous error
20
+
21
+
For more information about this error, try `rustc --explain E0308`.
0 commit comments