Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bryanlarsen
7 months ago
|
parent
|
context
|
favorite
| on:
A Rust shaped hole
Set the type of all the parameters to your new function to bool, then compile. The compiler error will tell you, "Error: you passed a foo<'bar, baz> instead of a bool". Then you change the type in the function's parameter to "foo<'bar, baz>".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: