-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
feature requestA new feature is requestedA new feature is requested
Description
Great library!
It would be really powerful to provide concrete defaults for generic parameters, the below example fails to compile:
#[builder]
fn foo(#[builder(default = std::iter::empty())] arg: impl IntoIterator<Item = String>) {
drop(arg);
}
213 | #[builder]
| ---------- expected this type parameter
214 | fn foo(#[builder(default = std::iter::empty())] arg: impl IntoIterator<Item = String>) {
| ^^^^^^^^^^^^^^^^^^ expected type parameter `I1`, found `Empty<_>`
A note for the community from the maintainers
Please vote on this issue by adding a 👍 reaction to help the maintainers with prioritizing it. You may add a comment describing your real use case related to this issue for us to better understand the problem domain.
rinde, zakstucke, mcmasn-amzn, voidentente, Chaoses-Ib and 1 more
Metadata
Metadata
Assignees
Labels
feature requestA new feature is requestedA new feature is requested