]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/half-open-range-pats-bad-types.stderr
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / ui / half-open-range-patterns / half-open-range-pats-bad-types.stderr
1 error[E0029]: only `char` and numeric types are allowed in range patterns
2   --> $DIR/half-open-range-pats-bad-types.rs:4:9
3    |
4 LL |     let "a".. = "a";
5    |         ^^^ this is of type `&'static str` but it should be `char` or numeric
6
7 error[E0029]: only `char` and numeric types are allowed in range patterns
8   --> $DIR/half-open-range-pats-bad-types.rs:5:11
9    |
10 LL |     let .."a" = "a";
11    |           ^^^ this is of type `&'static str` but it should be `char` or numeric
12
13 error[E0029]: only `char` and numeric types are allowed in range patterns
14   --> $DIR/half-open-range-pats-bad-types.rs:6:12
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`.