Foo::<>
does not use type parameter defaults
#36980
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-lang
Relevant to the language team
Uh oh!
There was an error while loading. Please reload this page.
This is about the stable Rust feature that types can have type parameter defaults.
Example code below. I expected that if
Test::<T>::method
specifies one type parameter, and leaves the second to the defaulted, thatTest::<>::method
should leave both type parameters to be defaulted. Instead it is equivalent toTest::method
(both type parameters inferred).playground link
The text was updated successfully, but these errors were encountered: