Stability annotation on defaulted generics fails #79499
Labels
A-allocators
Area: Custom and system allocators
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm adding
<A: AllocRef = Global>
to string types. Strings don't have a generic parameter, so the defaulted generic parameter is the first parameter:However, the compiler complains, that this annotation is "useless":
Was this simply not added by #77118 or is this a false positive in general?
cc @varkor @Avi-D-coder
The text was updated successfully, but these errors were encountered: