2024-01-28 16:12:21 +01:00
|
|
|
error: expected a pattern range bound, found an expression
|
|
|
|
|
--> $DIR/pat-ranges-3.rs:4:16
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let 10 ..= 10 + 3 = 12;
|
2024-10-06 01:44:59 +00:00
|
|
|
| ^^^^^^ not a pattern
|
|
|
|
|
|
|
2024-10-30 13:08:08 -06:00
|
|
|
= note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html>
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2024-01-28 16:12:21 +01:00
|
|
|
error: expected a pattern range bound, found an expression
|
|
|
|
|
--> $DIR/pat-ranges-3.rs:7:9
|
|
|
|
|
|
|
|
|
|
|
LL | let 10 - 3 ..= 10 = 8;
|
2024-10-06 01:44:59 +00:00
|
|
|
| ^^^^^^ not a pattern
|
|
|
|
|
|
|
2024-10-30 13:08:08 -06:00
|
|
|
= note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html>
|
2024-01-28 16:12:21 +01:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 23:36:17 +03:00
|
|
|
|