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

Doesn't work with StaticVec #2

Open
NilsIrl opened this issue Apr 16, 2020 · 1 comment
Open

Doesn't work with StaticVec #2

NilsIrl opened this issue Apr 16, 2020 · 1 comment

Comments

@NilsIrl
Copy link

NilsIrl commented Apr 16, 2020

StaticVec: https://github.com/slightlyoutofphase/staticvec

I get the following error:

error: no rules expected the token `staticvec`
  --> src/main.rs:53:44
   |
53 | counted_array::counted_array!(const GAMES: staticvec::StaticVec<Game> = compile_time_serde::deserialize_json!());
   |                                            ^^^^^^^^^ no rules expected this token in macro call

I can make more code available so please let me know if more context is needed.

CC @slightlyoutofphase

@NilsIrl NilsIrl changed the title Doesn't work with static vec Doesn't work with StaticVec Apr 16, 2020
@NilsIrl
Copy link
Author

NilsIrl commented Apr 16, 2020

I tried implementing it, but unfortunately it seems that macro_rule doesn't allow a type to be followed by a < for a reason I don't understand.

branch of my work: master...NilsIrl:vec_like_type

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

1 participant