@@ -4,6 +4,11 @@ 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+ |
712note: the tuple variant `Tuple` is defined here
813 --> $DIR/auxiliary/variants.rs:5:23
914 |
@@ -16,6 +21,11 @@ error[E0603]: unit variant `Unit` is private
1621LL | let variant_unit = NonExhaustiveVariants::Unit;
1722 | ^^^^ private unit variant
1823 |
24+ ::: $DIR/auxiliary/variants.rs:4:5
25+ |
26+ LL | #[non_exhaustive] Unit,
27+ | ----------------- the unit variant is `#[non_exhaustive]`
28+ |
1929note: the unit variant `Unit` is defined here
2030 --> $DIR/auxiliary/variants.rs:4:23
2131 |
@@ -28,6 +38,11 @@ error[E0603]: unit variant `Unit` is private
2838LL | NonExhaustiveVariants::Unit => "",
2939 | ^^^^ private unit variant
3040 |
41+ ::: $DIR/auxiliary/variants.rs:4:5
42+ |
43+ LL | #[non_exhaustive] Unit,
44+ | ----------------- the unit variant is `#[non_exhaustive]`
45+ |
3146note: the unit variant `Unit` is defined here
3247 --> $DIR/auxiliary/variants.rs:4:23
3348 |
@@ -40,6 +55,11 @@ error[E0603]: tuple variant `Tuple` is private
4055LL | NonExhaustiveVariants::Tuple(fe_tpl) => "",
4156 | ^^^^^ private tuple variant
4257 |
58+ ::: $DIR/auxiliary/variants.rs:5:5
59+ |
60+ LL | #[non_exhaustive] Tuple(u32),
61+ | ----------------- the tuple variant is `#[non_exhaustive]`
62+ |
4363note: the tuple variant `Tuple` is defined here
4464 --> $DIR/auxiliary/variants.rs:5:23
4565 |
@@ -52,6 +72,11 @@ error[E0603]: tuple variant `Tuple` is private
5272LL | if let NonExhaustiveVariants::Tuple(fe_tpl) = variant_struct {
5373 | ^^^^^ private tuple variant
5474 |
75+ ::: $DIR/auxiliary/variants.rs:5:5
76+ |
77+ LL | #[non_exhaustive] Tuple(u32),
78+ | ----------------- the tuple variant is `#[non_exhaustive]`
79+ |
5580note: the tuple variant `Tuple` is defined here
5681 --> $DIR/auxiliary/variants.rs:5:23
5782 |
0 commit comments