Skip to content

Following the tutorial and got error after the "parsing digits" section #44

Discussion options

You must be logged in to vote

Hi!

This isn't your fault, I think the problem is that you're relying on the latest stable version of the crate while the tutorial is written against the master branch. The master branch has some new features that aren't in the latest stable version.

In the case of this error, you can use src.as_str() to borrow the String as a &str.

However, it might be easier to have your project depend on the master branch for now, because there are some later parts of the tutorial that you'll run into similar issues with if you're only using the latest stable version. You can do that with the following in your Cargo.toml:

chumsky = { git = "https://github.com/zesterer/chumsky.git" }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0x7FFFFFFFFFFFFFFF
Comment options

Answer selected by 0x7FFFFFFFFFFFFFFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants