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 Fix non_exhaustive_omitted_patterns lint span 2023-04-02 16:37:23 +01:00
omitted-patterns.stderr Auto merge of #108504 - cjgillot:thir-pattern, r=compiler-errors,Nilstrieb 2023-04-06 12:42:01 +00:00
stable-omitted-patterns.rs
stable-omitted-patterns.stderr
struct.rs
struct.stderr Make span a bit better 2023-04-06 16:52:17 +00:00
structs_same_crate.rs
variant.rs
variant.stderr Make span a bit better 2023-04-06 16:52:17 +00:00
variants_fictive_visibility.rs
variants_same_crate.rs