# Ideas around anonymous enum types

**URL:** <https://internals.rust-lang.org/t/ideas-around-anonymous-enum-types/12627>\
**Category:** language design\
**Created:** [June 25, 2020, 5:36pm UTC](https://internals.rust-lang.org/t/ideas-around-anonymous-enum-types/12627 "2020-06-25T17:36:29Z")\
**Posts on this page:** 1\
**Showing post:** 190

<div class="post-metadata">

**Author:** ![robinm](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/robinm/32/6255_2.png) [@robinm](https://internals.rust-lang.org/u/robinm)\
**Post date:** [August 5, 2020, 6:29pm UTC](https://internals.rust-lang.org/t/ideas-around-anonymous-enum-types/12627/190 "2020-08-05T18:29:28Z")

</div>

Just a quick remark, if `enum impl Trait` is completely opaque and that anonymous enum can safely implement any safe trait, then there are no differences between `fn foo() -> enum impl Trait` and `fn foo() -> impl Trait` (and I prefer the latter).

---

_[View the full topic](https://internals.rust-lang.org/t/ideas-around-anonymous-enum-types/12627)._
