@@ -4,84 +4,69 @@ 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
- |
12
7
note: the tuple variant `Tuple` is defined here
13
8
--> $DIR/auxiliary/variants.rs:5:23
14
9
|
15
10
LL | #[non_exhaustive] Tuple(u32),
16
- | ^^^^^
11
+ | ----------------- ^^^^^
12
+ | |
13
+ | cannot be constructed because it is `#[non_exhaustive]`
17
14
18
15
error[E0603]: unit variant `Unit` is private
19
16
--> $DIR/variant.rs:14:47
20
17
|
21
18
LL | let variant_unit = NonExhaustiveVariants::Unit;
22
19
| ^^^^ private unit variant
23
20
|
24
- ::: $DIR/auxiliary/variants.rs:4:5
25
- |
26
- LL | #[non_exhaustive] Unit,
27
- | ----------------- the unit variant is `#[non_exhaustive]`
28
- |
29
21
note: the unit variant `Unit` is defined here
30
22
--> $DIR/auxiliary/variants.rs:4:23
31
23
|
32
24
LL | #[non_exhaustive] Unit,
33
- | ^^^^
25
+ | ----------------- ^^^^
26
+ | |
27
+ | cannot be constructed because it is `#[non_exhaustive]`
34
28
35
29
error[E0603]: unit variant `Unit` is private
36
30
--> $DIR/variant.rs:18:32
37
31
|
38
32
LL | NonExhaustiveVariants::Unit => "",
39
33
| ^^^^ private unit variant
40
34
|
41
- ::: $DIR/auxiliary/variants.rs:4:5
42
- |
43
- LL | #[non_exhaustive] Unit,
44
- | ----------------- the unit variant is `#[non_exhaustive]`
45
- |
46
35
note: the unit variant `Unit` is defined here
47
36
--> $DIR/auxiliary/variants.rs:4:23
48
37
|
49
38
LL | #[non_exhaustive] Unit,
50
- | ^^^^
39
+ | ----------------- ^^^^
40
+ | |
41
+ | cannot be constructed because it is `#[non_exhaustive]`
51
42
52
43
error[E0603]: tuple variant `Tuple` is private
53
44
--> $DIR/variant.rs:20:32
54
45
|
55
46
LL | NonExhaustiveVariants::Tuple(fe_tpl) => "",
56
47
| ^^^^^ private tuple variant
57
48
|
58
- ::: $DIR/auxiliary/variants.rs:5:5
59
- |
60
- LL | #[non_exhaustive] Tuple(u32),
61
- | ----------------- the tuple variant is `#[non_exhaustive]`
62
- |
63
49
note: the tuple variant `Tuple` is defined here
64
50
--> $DIR/auxiliary/variants.rs:5:23
65
51
|
66
52
LL | #[non_exhaustive] Tuple(u32),
67
- | ^^^^^
53
+ | ----------------- ^^^^^
54
+ | |
55
+ | cannot be constructed because it is `#[non_exhaustive]`
68
56
69
57
error[E0603]: tuple variant `Tuple` is private
70
58
--> $DIR/variant.rs:26:35
71
59
|
72
60
LL | if let NonExhaustiveVariants::Tuple(fe_tpl) = variant_struct {
73
61
| ^^^^^ private tuple variant
74
62
|
75
- ::: $DIR/auxiliary/variants.rs:5:5
76
- |
77
- LL | #[non_exhaustive] Tuple(u32),
78
- | ----------------- the tuple variant is `#[non_exhaustive]`
79
- |
80
63
note: the tuple variant `Tuple` is defined here
81
64
--> $DIR/auxiliary/variants.rs:5:23
82
65
|
83
66
LL | #[non_exhaustive] Tuple(u32),
84
- | ^^^^^
67
+ | ----------------- ^^^^^
68
+ | |
69
+ | cannot be constructed because it is `#[non_exhaustive]`
85
70
86
71
error[E0639]: cannot create non-exhaustive variant using struct expression
87
72
--> $DIR/variant.rs:8:26
0 commit comments