Mild Regression: Enum Dispatch on enums wrapping Deref<Target=Trait> no longer works

e4fe1c88 / #1 (closed) makes a lot of sense in terms of correctness, however I have the use case that I'd like my enum to wrap Rcs of my structs:

#[enum_dispatch]
enum Enum {
    Foo(Rc<Foo>),
    Bar(Rc<Bar>),
}

Which no longer works after the UFCS enhancement.

This used to work in v0.2.2, see my branch for a sample test.

I'm opening this issue to see if we can come up with a solution to support the UFCS case along with Deref<Target=Trait> values in our enum.

Edited Mar 17, 2021 by Dylan
Assignee Loading
Time tracking Loading