| 1 |
error: loops infinitely because loop body can match without consuming input |
| 2 |
--> $DIR/nullable_loop.rs:2:27 |
| 3 |
| |
| 4 |
2 | rule nested() = ("a"*)* //~ ERROR |
| 5 |
| ^ |
| 6 |
|
| 7 |
error: loops infinitely because loop body can match without consuming input |
| 8 |
--> $DIR/nullable_loop.rs:8:35 |
| 9 |
| |
| 10 |
8 | rule call() = "foo" nullable()* //~ ERROR |
| 11 |
| ^ |
| 12 |
|
| 13 |
error: loops infinitely because loop body can match without consuming input |
| 14 |
--> $DIR/nullable_loop.rs:10:44 |
| 15 |
| |
| 16 |
10 | rule more_complex() = ("x" / "a"? "b"?)*<2,> //~ ERROR |
| 17 |
| ^ |