Revert "Add bounds for fields in derive macro"

This commit is contained in:
Lukas Wirth 2023-04-07 11:01:17 +02:00 committed by GitHub
parent bca364c3fe
commit 435d585d0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 66 deletions

View file

@ -471,7 +471,7 @@ struct Foo {}
"#,
expect![[r#"
Clone
impl < >core::clone::Clone for Foo< >where{}
impl < >core::clone::Clone for Foo< >{}
"#]],
);
}
@ -488,7 +488,7 @@ struct Foo {}
"#,
expect![[r#"
Copy
impl < >core::marker::Copy for Foo< >where{}
impl < >core::marker::Copy for Foo< >{}
"#]],
);
}
@ -504,7 +504,7 @@ struct Foo {}
"#,
expect![[r#"
Copy
impl < >core::marker::Copy for Foo< >where{}
impl < >core::marker::Copy for Foo< >{}
"#]],
);
check(
@ -516,7 +516,7 @@ struct Foo {}
"#,
expect![[r#"
Clone
impl < >core::clone::Clone for Foo< >where{}
impl < >core::clone::Clone for Foo< >{}
"#]],
);
}