Closed
Description
Deriving TryFrom
, TryInto
or FromStr
when there's an associated item called Error
or Err
will fail.
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.
Activity