You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(optin_builtin_traits)]traitXyz{}
auto traitAbc{}implAbcfordynXyz + Abc{}
Expected Result
Code gives the same error as impl Xyz for dyn Xyz + Abc, giving error[E0371]: the object type (dyn Xyz + Abc + 'static)automatically implements the traitXyz`
Actual Result
Code passes coherence, but wfcheck fails because of the confusion:
error[E0283]: type annotations required: cannot resolve `(dyn Xyz + Abc + 'static): Abc`
--> src/lib.rs:6:6
|
6 | impl Abc for dyn Xyz + Abc {
| ^^^
error: aborting due to previous error