Private supertraits are not callable on concrete types #83882
Labels
A-trait-system
Area: Trait system
A-visibility
Area: Visibility / privacy
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
I am reporting this because I believe this is a bug.
Both
meow_dyn
andmeow_static
type check, but calling.bar()
on a concrete type is currently not possible. Is there a reason for that?I would expect any of those two cases:
meow_u32
should actually type check, and.bar()
should be callable ifFoo
is visible, becauseBar
is a supertrait.Bar
should not be usable in any other context, because the trait is private.I could not find any information about this in the reference.
The text was updated successfully, but these errors were encountered: