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

README example no longer compiles #342

Closed
workingjubilee opened this issue Mar 20, 2024 · 1 comment · Fixed by #344
Closed

README example no longer compiles #342

workingjubilee opened this issue Mar 20, 2024 · 1 comment · Fixed by #344

Comments

@workingjubilee
Copy link
Contributor

error[E0107]: struct takes 1 generic argument but 2 generic arguments were supplied
   --> src/main.rs:5:16
    |
5   |     let mut v: SmallVec<i32, 4> = smallvec![1, 2, 3, 4];
    |                ^^^^^^^^      - help: remove this generic argument
    |                |
    |                expected 1 generic argument
    |
note: struct defined here, with 1 generic parameter: `A`
   --> /playground/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:768:12
    |
768 | pub struct SmallVec<A: Array> {
    |            ^^^^^^^^ -
@workingjubilee
Copy link
Contributor Author

Oh, I got confused by the v1 vs. v2 branch thing. darnit.

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

Successfully merging a pull request may close this issue.

1 participant