@@ -4,84 +4,69 @@ error[E0603]: tuple variant `Tuple` is private
44LL | let variant_tuple = NonExhaustiveVariants::Tuple(640);
55 | ^^^^^ private tuple variant
66 |
7- ::: $DIR/auxiliary/variants.rs:5:5
8- |
9- LL | #[non_exhaustive] Tuple(u32),
10- | ----------------- the tuple variant is `#[non_exhaustive]`
11- |
127note: the tuple variant `Tuple` is defined here
138 --> $DIR/auxiliary/variants.rs:5:23
149 |
1510LL | #[non_exhaustive] Tuple(u32),
16- | ^^^^^
11+ | ----------------- ^^^^^
12+ | |
13+ | cannot be constructed because it is `#[non_exhaustive]`
1714
1815error[E0603]: unit variant `Unit` is private
1916 --> $DIR/variant.rs:14:47
2017 |
2118LL | let variant_unit = NonExhaustiveVariants::Unit;
2219 | ^^^^ private unit variant
2320 |
24- ::: $DIR/auxiliary/variants.rs:4:5
25- |
26- LL | #[non_exhaustive] Unit,
27- | ----------------- the unit variant is `#[non_exhaustive]`
28- |
2921note: the unit variant `Unit` is defined here
3022 --> $DIR/auxiliary/variants.rs:4:23
3123 |
3224LL | #[non_exhaustive] Unit,
33- | ^^^^
25+ | ----------------- ^^^^
26+ | |
27+ | cannot be constructed because it is `#[non_exhaustive]`
3428
3529error[E0603]: unit variant `Unit` is private
3630 --> $DIR/variant.rs:18:32
3731 |
3832LL | NonExhaustiveVariants::Unit => "",
3933 | ^^^^ private unit variant
4034 |
41- ::: $DIR/auxiliary/variants.rs:4:5
42- |
43- LL | #[non_exhaustive] Unit,
44- | ----------------- the unit variant is `#[non_exhaustive]`
45- |
4635note: the unit variant `Unit` is defined here
4736 --> $DIR/auxiliary/variants.rs:4:23
4837 |
4938LL | #[non_exhaustive] Unit,
50- | ^^^^
39+ | ----------------- ^^^^
40+ | |
41+ | cannot be constructed because it is `#[non_exhaustive]`
5142
5243error[E0603]: tuple variant `Tuple` is private
5344 --> $DIR/variant.rs:20:32
5445 |
5546LL | NonExhaustiveVariants::Tuple(fe_tpl) => "",
5647 | ^^^^^ private tuple variant
5748 |
58- ::: $DIR/auxiliary/variants.rs:5:5
59- |
60- LL | #[non_exhaustive] Tuple(u32),
61- | ----------------- the tuple variant is `#[non_exhaustive]`
62- |
6349note: the tuple variant `Tuple` is defined here
6450 --> $DIR/auxiliary/variants.rs:5:23
6551 |
6652LL | #[non_exhaustive] Tuple(u32),
67- | ^^^^^
53+ | ----------------- ^^^^^
54+ | |
55+ | cannot be constructed because it is `#[non_exhaustive]`
6856
6957error[E0603]: tuple variant `Tuple` is private
7058 --> $DIR/variant.rs:26:35
7159 |
7260LL | if let NonExhaustiveVariants::Tuple(fe_tpl) = variant_struct {
7361 | ^^^^^ private tuple variant
7462 |
75- ::: $DIR/auxiliary/variants.rs:5:5
76- |
77- LL | #[non_exhaustive] Tuple(u32),
78- | ----------------- the tuple variant is `#[non_exhaustive]`
79- |
8063note: the tuple variant `Tuple` is defined here
8164 --> $DIR/auxiliary/variants.rs:5:23
8265 |
8366LL | #[non_exhaustive] Tuple(u32),
84- | ^^^^^
67+ | ----------------- ^^^^^
68+ | |
69+ | cannot be constructed because it is `#[non_exhaustive]`
8570
8671error[E0639]: cannot create non-exhaustive variant using struct expression
8772 --> $DIR/variant.rs:8:26
0 commit comments