File: nullable_loop.stderr

package info (click to toggle)
rust-peg 0.8.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 756 kB
  • sloc: makefile: 20; sh: 12
file content (17 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: loops infinitely because loop body can match without consuming input
 --> $DIR/nullable_loop.rs:2:27
  |
2 |     rule nested() = ("a"*)* //~ ERROR
  |                           ^

error: loops infinitely because loop body can match without consuming input
 --> $DIR/nullable_loop.rs:8:35
  |
8 |     rule call() = "foo" nullable()* //~ ERROR
  |                                   ^

error: loops infinitely because loop body can match without consuming input
  --> $DIR/nullable_loop.rs:10:44
   |
10 |     rule more_complex() = ("x" / "a"? "b"?)*<2,> //~ ERROR
   |                                            ^