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

generics2 is a bit too easy #362

Closed
sapir opened this issue Apr 20, 2020 · 0 comments
Closed

generics2 is a bit too easy #362

sapir opened this issue Apr 20, 2020 · 0 comments

Comments

@sapir
Copy link

sapir commented Apr 20, 2020

The struct is actually generic over u32:

struct Wrapper<u32> {
    value: u32
}

so no modifications to the struct are necessary to complete the exercise. You only have to comment out the old assert and uncomment the new one and you're done.

The example struct definition should probably be

struct Wrapper {
    value: u32
}
samtay pushed a commit to samtay/rustlings-solutions that referenced this issue May 28, 2020
MendelMonteiro pushed a commit to MendelMonteiro/rustlings that referenced this issue Jun 28, 2020
dlemel8 pushed a commit to dlemel8/rustlings that referenced this issue Aug 2, 2020
ppp3 pushed a commit to ppp3/rustlings that referenced this issue May 23, 2022
dmoore04 pushed a commit to dmoore04/rustlings that referenced this issue Sep 11, 2022
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