self: Box<Self>
is sort of vestigial. The feature of allowing Box<Self>
as the type of self
, along with the syntax for explicitly writing out the type of self
, sort of slipped into 1.0 without anyone really considering the issue. The other syntax is strongly preferred.
#83616
Explicitly specifying the type of self using the syntax
self: Box<Self>
is sort of vestigial. The feature of allowingBox<Self>
as the type ofself
, along with the syntax for explicitly writing out the type ofself
, sort of slipped into 1.0 without anyone really considering the issue. The other syntax is strongly preferred.The explicit type syntax will probably be deprecated at some point.
Originally posted by @eefriedman in #27941 (comment)
The text was updated successfully, but these errors were encountered: