Open dave-doty opened 3 months ago
To be clear, this isn't a typo as cargo test
builds and runs all of the examples.
All of winnow examples (except Special Topics), only show the use
for the item in question (e.g. see be_u128
).
In particular, for the Tutorial, we also leave out large bodies of code, building on what we've previously shown. We show // ...
when eliding functions but it appears we don't do that when eliding use
statements.
Please complete the following tasks
rust version
1.79.0
winnow version
0.6.15
Minimal reproducible code
See next.
Steps to reproduce the bug with the above code
Some of the code in the tutorial is incomplete. For example, at https://docs.rs/winnow/latest/winnow/_tutorial/chapter_2/index.html there is this program:
but it does not compile. It needs these two lines added at the top:
Actual Behaviour
Put this in a main.rs file and run
cargo check
. This error results:Expected Behaviour
Should compile without errors.
Additional Context
No response