You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
## Problem\*
Resolves#5183
## Summary\*
Add support for wildcard type: `_`
## Additional Context
## Documentation\*
Check one:
- [ ] No documentation needed.
- [X] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [X] I have tested the changes locally.
- [X] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
Problem
Currently,
Field
's:(i.e.
collect::<Vec<_>>()
)This can require a lot of duplication when functions/traits have several generic arguments and makes the resulting code more fragile.
Happy Case
Support a type wildcard (
_
) that's equivalent to an unbound type variable and errors at monomorphization if still unbound:Project Impact
Nice-to-have
Impact Context
No response
Workaround
Yes
Workaround Description
Specify all of the arguments and types explicitly
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: