The following does not build, although I would expect it to.
#[derive(educe::Educe)]
#[educe(
PartialEq(bound(*)),
Eq,
PartialOrd(bound(*)),
Ord,
)]
pub struct Foo<T>(Option<T>);
error: you are using an incorrect format of the `PartialOrd` attribute, which should be reformatted as follows:
#[educe(PartialOrd)]
--> src/lib.rs:5:5
|
5 | PartialOrd(bound(*)),
It builds fine if I remove the Ord.
I need to set bound(*) for PartialOrd, otherwise it generates:
impl<T> ::core::cmp::PartialOrd for Foo<T>
where
Option<T>: ::core::cmp::Ord,
Self: ::core::cmp::Eq
{ ... }
when I want the bound T: core::cmp::Ord.
The following does not build, although I would expect it to.
It builds fine if I remove the
Ord.I need to set
bound(*)forPartialOrd, otherwise it generates:when I want the bound
T: core::cmp::Ord.