-
Notifications
You must be signed in to change notification settings - Fork 12
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
Help with Default with generics not working. #30
Comments
What do you expect
to do ? It looks like it's trying to say that when constructing a default value of That's fine for |
Ok got it, is there a way to annotate what T would be? |
I'm not sure I understand the question. In the original, you're setting the default to a vec of numbers. Why haven't you written:
? (Genuine question: there must be a reason.) One option would be something like this:
I haven't tried that, the syntax may be wrong, but I hope you get the idea. You'd only be able to get a |
The text was updated successfully, but these errors were encountered: