@@ -4,6 +4,11 @@ error[E0603]: tuple variant `Tuple` is private
4
4
LL | let variant_tuple = NonExhaustiveVariants::Tuple(640);
5
5
| ^^^^^ private tuple variant
6
6
|
7
+ ::: $DIR/auxiliary/variants.rs:5:5
8
+ |
9
+ LL | #[non_exhaustive] Tuple(u32),
10
+ | ----------------- the tuple variant is `#[non_exhaustive]`
11
+ |
7
12
note: the tuple variant `Tuple` is defined here
8
13
--> $DIR/auxiliary/variants.rs:5:23
9
14
|
@@ -16,6 +21,11 @@ error[E0603]: unit variant `Unit` is private
16
21
LL | let variant_unit = NonExhaustiveVariants::Unit;
17
22
| ^^^^ private unit variant
18
23
|
24
+ ::: $DIR/auxiliary/variants.rs:4:5
25
+ |
26
+ LL | #[non_exhaustive] Unit,
27
+ | ----------------- the unit variant is `#[non_exhaustive]`
28
+ |
19
29
note: the unit variant `Unit` is defined here
20
30
--> $DIR/auxiliary/variants.rs:4:23
21
31
|
@@ -28,6 +38,11 @@ error[E0603]: unit variant `Unit` is private
28
38
LL | NonExhaustiveVariants::Unit => "",
29
39
| ^^^^ private unit variant
30
40
|
41
+ ::: $DIR/auxiliary/variants.rs:4:5
42
+ |
43
+ LL | #[non_exhaustive] Unit,
44
+ | ----------------- the unit variant is `#[non_exhaustive]`
45
+ |
31
46
note: the unit variant `Unit` is defined here
32
47
--> $DIR/auxiliary/variants.rs:4:23
33
48
|
@@ -40,6 +55,11 @@ error[E0603]: tuple variant `Tuple` is private
40
55
LL | NonExhaustiveVariants::Tuple(fe_tpl) => "",
41
56
| ^^^^^ private tuple variant
42
57
|
58
+ ::: $DIR/auxiliary/variants.rs:5:5
59
+ |
60
+ LL | #[non_exhaustive] Tuple(u32),
61
+ | ----------------- the tuple variant is `#[non_exhaustive]`
62
+ |
43
63
note: the tuple variant `Tuple` is defined here
44
64
--> $DIR/auxiliary/variants.rs:5:23
45
65
|
@@ -52,6 +72,11 @@ error[E0603]: tuple variant `Tuple` is private
52
72
LL | if let NonExhaustiveVariants::Tuple(fe_tpl) = variant_struct {
53
73
| ^^^^^ private tuple variant
54
74
|
75
+ ::: $DIR/auxiliary/variants.rs:5:5
76
+ |
77
+ LL | #[non_exhaustive] Tuple(u32),
78
+ | ----------------- the tuple variant is `#[non_exhaustive]`
79
+ |
55
80
note: the tuple variant `Tuple` is defined here
56
81
--> $DIR/auxiliary/variants.rs:5:23
57
82
|
0 commit comments