rust/tests/ui/parser/pat-ranges-3.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
447 B
Plaintext
Raw Normal View History

error: expected a pattern range bound, found an expression
--> $DIR/pat-ranges-3.rs:4:16
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | let 10 ..= 10 + 3 = 12;
| ^^^^^^ arbitrary expressions are not allowed in patterns
2018-10-20 20:36:17 +00:00
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
2018-10-20 20:36:17 +00:00