mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
447 B
Text
14 lines
447 B
Text
error: expected a pattern range bound, found an expression
|
|
--> $DIR/pat-ranges-3.rs:4:16
|
|
|
|
|
LL | let 10 ..= 10 + 3 = 12;
|
|
| ^^^^^^ arbitrary expressions are not allowed in patterns
|
|
|
|
error: expected a pattern range bound, found an expression
|
|
--> $DIR/pat-ranges-3.rs:7:9
|
|
|
|
|
LL | let 10 - 3 ..= 10 = 8;
|
|
| ^^^^^^ arbitrary expressions are not allowed in patterns
|
|
|
|
error: aborting due to 2 previous errors
|
|
|