Special treatment like this was necessary before `pub(restricted)` had been implemented and only two visibilities existed - `pub` and non-`pub`. Now it's no longer necessary and the desired behavior follows from `pub(restricted)`-style visibilities naturally assigned to enum variants and trait items. |
||
|---|---|---|
| .. | ||
| auxiliary | ||
| variant-namespacing.rs | ||
| variant-namespacing.stderr | ||
| variant-size-differences.rs | ||
| variant-size-differences.stderr | ||
| variant-used-as-type.rs | ||
| variant-used-as-type.stderr | ||