Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error on latest nightly: "type annotations required: cannot resolve usize: std::ops::AddAssign<_>" #92

Closed
dwrensha opened this issue Oct 1, 2017 · 1 comment

Comments

@dwrensha
Copy link

dwrensha commented Oct 1, 2017

$ rustc --version
rustc 1.22.0-nightly (c6884b12d 2017-09-30)
$ cargo build
   Compiling peresil v0.3.0 (https://github.com/shepmaster/peresil#6049cb14)
   Compiling quote v0.3.15
   Compiling unicode-xid v0.0.4
   Compiling synom v0.11.3
   Compiling syn v0.11.10
   Compiling fuzzy-pickles-derive v0.1.0 (file:///home/david/src/fuzzy-pickles/fuzzy-pickles-derive)
   Compiling fuzzy-pickles v0.1.0 (file:///home/david/src/fuzzy-pickles)
error[E0283]: type annotations required: cannot resolve `usize: std::ops::AddAssign<_>`
   --> src/tokenizer.rs:544:17
    |
544 |             idx += ci.take_while(|&c| UnicodeXID::is_xid_continue(c)).map(|c| c.len_utf8()).sum();
    |                 ^^

error: aborting due to previous error

error: Could not compile `fuzzy-pickles`.

To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants