Closed bluurryy closed 1 month ago
Deriving TryFrom, TryInto or FromStr when there's an associated item called Error or Err will fail.
TryFrom
TryInto
FromStr
Error
Err
All of these derives fail:
use derive_more::*; #[derive(TryFrom)] #[try_from(repr)] #[repr(u8)] enum LogLevel { Error, } #[derive(FromStr)] enum EnumNoFields { Err, } #[derive(TryInto)] enum MixedInts { Foo(LogLevel), }
I will send a PR shortly that will fix this issue.
Deriving
TryFrom
,TryInto
orFromStr
when there's an associated item calledError
orErr
will fail.All of these derives fail:
I will send a PR shortly that will fix this issue.