1
0
mirror of https://github.com/danog/strum.git synced 2024-11-26 20:14:40 +01:00
strum/strum_macros
Tyler Hall 1e3acb64a7
Disambiguate associated items in trait impls (#193)
The addition of TryFrom<&str> for EnumString breaks for enums that have
a variant called "Error". Rewrite as <Self as Trait> where associated
types are used as the return type for trait functions.

Example:

```rust
pub enum Test {
    Error,
}
```

error: ambiguous associated item
   --> src/lib.rs:3:10
    |
3   | #[derive(EnumString)]
    |          ^^^^^^^^^^
    |
    = note: `#[deny(ambiguous_associated_items)]` on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #57644 <https://github.com/rust-lang/rust/issues/57644>
2021-11-19 12:12:59 -08:00
..
src Disambiguate associated items in trait impls (#193) 2021-11-19 12:12:59 -08:00
Cargo.toml Tweak docs to format correctly and update crates to the newest version 2021-11-16 22:24:17 -08:00
LICENSE Refactoring code and updating syn + quote (#71) 2019-09-18 11:24:14 -07:00