Closed Arnavion closed 6 years ago
Will be possible with upcoming #![feature(proc_macro)]
enhancements (syn_0_12
branch).
This is implemented in the syn_0_12
branch, but the requirement of #[feature(proc_macro)]
and syn
v0.12 means this is probably not going to be in v0.11.0
As a workaround, one can use a closure instead of a function path:
can be written as