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

Example fails #12

Open
peter-lyons-kehl opened this issue May 27, 2022 · 1 comment
Open

Example fails #12

peter-lyons-kehl opened this issue May 27, 2022 · 1 comment

Comments

@peter-lyons-kehl
Copy link

The example given at https://docs.rs/countme/3.0.1/countme fails at runtime, with both Rust 1.61.0 and 1.63-nightly. My guess is non-lexical lifetimes make the local variables disappear early?

(The following is from https://github.com/peter-kehl/countme_test, which has the aforementioned example pasted in.)

thread 'tests::countme_orig_example' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `2`', src/lib.rs:23:9
@crazymerlyn
Copy link

Works fine if you use the feature "enable". Don't know why that feature isn't on by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants