const generic ty's do not get hard errors for privacy violations #111939
Labels
A-resolve
Area: Name resolution
C-bug
Category: This is a bug.
F-adt_const_params
`#![feature(adt_const_params)]`
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: it error,
Foo
is a private type in a public signatureInstead, this happened:
It just gives a warning, since adt_const_params is unstable we can make this a hard error
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: