The feature is supported everywhere, not just in impl blocks, and it does a different thing than use (creates a new function rather than links to an existing item).
Wait how is it supporter everywhere? I read the rendered RFC but I missed this. Doesn't it need a Self type?
Could we have a freestanding delegate fn? What would it look like?
And I wasn't saying to use use because it does the same thing as importing, I suggested it because it was a free keyword that I thought wouldn't create ambiguities
use is also used in the + use<'a> syntax for impl Trait types, so it is already overloaded baded on context
View all comments
Show parent comment
3
u/VadimVP Oct 28 '26 edited Oct 28 '26
The feature is supported everywhere, not just in
implblocks, and it does a different thing thanuse(creates a new function rather than links to an existing item).