mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
e70818983b
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 ``` |
||
---|---|---|
.. | ||
auxiliary | ||
improper_ctypes | ||
uninhabited | ||
borrowck-exhaustive.rs | ||
borrowck-non-exhaustive.rs | ||
borrowck-non-exhaustive.stderr | ||
enum_same_crate_empty_match.rs | ||
enum_same_crate_empty_match.stderr | ||
enum_same_crate.rs | ||
enum-as-cast.rs | ||
enum-as-cast.stderr | ||
enum.rs | ||
enum.stderr | ||
invalid-attribute.rs | ||
invalid-attribute.stderr | ||
omitted-patterns.rs | ||
omitted-patterns.stderr | ||
stable-omitted-patterns.rs | ||
stable-omitted-patterns.stderr | ||
struct.rs | ||
struct.stderr | ||
structs_same_crate.rs | ||
variant.rs | ||
variant.stderr | ||
variants_fictive_visibility.rs | ||
variants_same_crate.rs |