]> git.proxmox.com Git - rustc.git/blame - src/test/ui/half-open-range-patterns/half-open-range-pats-bad-types.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / half-open-range-patterns / half-open-range-pats-bad-types.stderr
CommitLineData
1b1a35ee 1error[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 |
4LL | let "a".. = "a";
5 | ^^^ this is of type `&'static str` but it should be `char` or numeric
6
1b1a35ee 7error[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 |
10LL | let .."a" = "a";
11 | ^^^ this is of type `&'static str` but it should be `char` or numeric
12
1b1a35ee 13error[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 |
16LL | let ..="a" = "a";
17 | ^^^ this is of type `&'static str` but it should be `char` or numeric
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0029`.