1 error[E0423]: expected value, found enum `A`
2 --> $DIR/issue-73427.rs:33:5
7 note: the enum is defined here
8 --> $DIR/issue-73427.rs:1:1
11 LL | | StructWithFields { x: () },
12 LL | | TupleWithFields(()),
18 help: you might have meant to use one of the following enum variants
20 LL | (A::Tuple()).foo();
24 help: alternatively, the following enum variant is available
26 LL | (A::TupleWithFields(/* fields */)).foo();
27 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29 error[E0423]: expected value, found enum `B`
30 --> $DIR/issue-73427.rs:35:5
33 | ^ help: the following enum variant is available: `(B::TupleWithFields(/* fields */))`
35 note: the enum is defined here
36 --> $DIR/issue-73427.rs:9:1
39 LL | | StructWithFields { x: () },
40 LL | | TupleWithFields(()),
44 error[E0423]: expected value, found enum `C`
45 --> $DIR/issue-73427.rs:37:5
50 note: the enum is defined here
51 --> $DIR/issue-73427.rs:14:1
54 LL | | StructWithFields { x: () },
55 LL | | TupleWithFields(()),
59 help: you might have meant to use the following enum variant
63 help: alternatively, the following enum variant is available
65 LL | (C::TupleWithFields(/* fields */)).foo();
66 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 error[E0423]: expected value, found enum `D`
69 --> $DIR/issue-73427.rs:39:5
74 note: the enum is defined here
75 --> $DIR/issue-73427.rs:20:1
78 LL | | TupleWithFields(()),
82 help: you might have meant to use the following enum variant
86 help: alternatively, the following enum variant is available
88 LL | (D::TupleWithFields(/* fields */)).foo();
89 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91 error[E0423]: expected value, found enum `E`
92 --> $DIR/issue-73427.rs:41:5
97 note: the enum is defined here
98 --> $DIR/issue-73427.rs:25:1
101 LL | | TupleWithFields(()),
104 help: the following enum variant is available
106 LL | (E::TupleWithFields(/* fields */)).foo();
107 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108 help: consider importing one of these items instead
110 LL | use std::f32::consts::E;
112 LL | use std::f64::consts::E;
115 error[E0532]: expected tuple struct or tuple variant, found enum `A`
116 --> $DIR/issue-73427.rs:48:12
118 LL | if let A(3) = x { }
121 = help: you might have meant to match against the enum's non-tuple variant
122 note: the enum is defined here
123 --> $DIR/issue-73427.rs:1:1
126 LL | | StructWithFields { x: () },
127 LL | | TupleWithFields(()),
133 help: try to match against one of the enum's variants
135 LL | if let A::Tuple(3) = x { }
137 LL | if let A::TupleWithFields(3) = x { }
140 error[E0423]: expected function, tuple struct or tuple variant, found enum `A`
141 --> $DIR/issue-73427.rs:46:13
146 = help: you might have meant to construct the enum's non-tuple variant
147 note: the enum is defined here
148 --> $DIR/issue-73427.rs:1:1
151 LL | | StructWithFields { x: () },
152 LL | | TupleWithFields(()),
158 help: try to construct one of the enum's variants
160 LL | let x = A::Tuple(3);
162 LL | let x = A::TupleWithFields(3);
165 error: aborting due to 7 previous errors
167 Some errors have detailed explanations: E0423, E0532.
168 For more information about an error, try `rustc --explain E0423`.