@@ -99,7 +99,7 @@ mod tests {
99
99
100
100
#[ allow( dead_code) ]
101
101
#[ derive( EnumDisplay ) ]
102
- enum TestEnumWithGenerics < ' a , T : Clone >
102
+ enum TestEnumWithLifetimeAndGenerics < ' a , T : Clone >
103
103
where
104
104
T : std:: fmt:: Display ,
105
105
{
@@ -195,14 +195,17 @@ mod tests {
195
195
}
196
196
197
197
#[ test]
198
- fn test_unit_field_variant_with_generics ( ) {
199
- assert_eq ! ( TestEnumWithGenerics :: <' _, String >:: Name . to_string( ) , "Name" ) ;
198
+ fn test_unit_field_variant_with_lifetime_and_generics ( ) {
199
+ assert_eq ! (
200
+ TestEnumWithLifetimeAndGenerics :: <' _, String >:: Name . to_string( ) ,
201
+ "Name"
202
+ ) ;
200
203
}
201
204
202
205
#[ test]
203
- fn test_named_fields_variant_with_generics ( ) {
206
+ fn test_named_fields_variant_with_lifetime_and_generics ( ) {
204
207
assert_eq ! (
205
- TestEnumWithGenerics :: Address {
208
+ TestEnumWithLifetimeAndGenerics :: Address {
206
209
street: & "123 Main St" . to_string( ) ,
207
210
city: & "Any Town" . to_string( ) ,
208
211
state: & "CA" . to_string( ) ,
@@ -214,9 +217,9 @@ mod tests {
214
217
}
215
218
216
219
#[ test]
217
- fn test_unnamed_fields_variant_with_generics ( ) {
220
+ fn test_unnamed_fields_variant_with_lifetime_and_generics ( ) {
218
221
assert_eq ! (
219
- TestEnumWithGenerics :: <' _, String >:: DateOfBirth ( 1 , 1 , 2000 ) . to_string( ) ,
222
+ TestEnumWithLifetimeAndGenerics :: <' _, String >:: DateOfBirth ( 1 , 1 , 2000 ) . to_string( ) ,
220
223
"DateOfBirth"
221
224
) ;
222
225
}
0 commit comments