rust/tests/ui/rfc-2008-non-exhaustive
Matthias Krüger e70818983b
Rollup merge of #110013 - compiler-errors:non-exhaustive-privacy-reason, r=WaffleLapkin
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
```
2023-04-07 00:00:25 +02:00
..
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