about summary refs log tree commit diff
path: root/tests/ui/parser/pat-ranges-3.stderr
blob: fcda924d98c515d1a861a86111d77a746dc0583e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: expected a pattern range bound, found an expression
  --> $DIR/pat-ranges-3.rs:4:16
   |
LL |     let 10 ..= 10 + 3 = 12;
   |                ^^^^^^ not a pattern
   |
   = note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html>

error: expected a pattern range bound, found an expression
  --> $DIR/pat-ranges-3.rs:7:9
   |
LL |     let 10 - 3 ..= 10 = 8;
   |         ^^^^^^ not a pattern
   |
   = note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html>

error: aborting due to 2 previous errors