The code fails since Foo doesn't implement Default.
But this should not be the case since I'm providing a default through the attribute, and adding the where Foo: Default is uncecessary at that point.
where
Foo: Default
Should only be applied if #[default] is given without a value.
Given the following code:
The code fails since
Foo
doesn't implementDefault
. But this should not be the case since I'm providing a default through the attribute, and adding thewhere Foo: Default
is uncecessary at that point.Should only be applied if
#[default]
is given without a value.