Why can't `Self` be used to refer to an enum's variant in a method body?

后端 未结 5 1977
无人及你
无人及你 2020-12-11 15:20

This question is now obsolete because this feature has been implemented. Related answer.


The following Rust code fails to compile:

enum Foo {
          


        
5条回答
提交回复
热议问题