mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-07 04:23:30 +00:00
![]() Label `non_exhaustive` attribute on privacy errors from non-local items Label when an ADT is `non_exhaustive` and we get a privacy error, help with confusion in a case like this: ```rust #[non_exhaustive] pub struct Foo; // other crate let x = Foo; //~^ ERROR unit struct `Foo` is private ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |