]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0029]: only `char` and numeric types are allowed in range patterns |
2b03887a | 2 | --> $DIR/half-open-range-pats-bad-types.rs:4:9 |
dfeec247 XL |
3 | | |
4 | LL | let "a".. = "a"; | |
5 | | ^^^ this is of type `&'static str` but it should be `char` or numeric | |
6 | ||
1b1a35ee | 7 | error[E0029]: only `char` and numeric types are allowed in range patterns |
2b03887a | 8 | --> $DIR/half-open-range-pats-bad-types.rs:5:11 |
dfeec247 XL |
9 | | |
10 | LL | let .."a" = "a"; | |
11 | | ^^^ this is of type `&'static str` but it should be `char` or numeric | |
12 | ||
1b1a35ee | 13 | error[E0029]: only `char` and numeric types are allowed in range patterns |
2b03887a | 14 | --> $DIR/half-open-range-pats-bad-types.rs:6:12 |
dfeec247 XL |
15 | | |
16 | LL | let ..="a" = "a"; | |
17 | | ^^^ this is of type `&'static str` but it should be `char` or numeric | |
18 | ||
19 | error: aborting due to 3 previous errors | |
20 | ||
21 | For more information about this error, try `rustc --explain E0029`. |