You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not attempted to make the change, so that i don't know if it would be possible.
If the self. is removed from the above code, the compiler hints at something that would work.
error[E0425]: cannot find value `field` in this scope
--> src/main.rs:88:13
|
88 | / "
89 | | echo {field}
90 | | "
| |_____________^ help: you might have meant to use the available field: `self.field`
The text was updated successfully, but these errors were encountered:
Good question: this certainly is plausible to implement. I don't remeber why I didn't do it that way, one argument would be that rust format! itself only supports identifiers, but that's a relatively week one.
I think we should just support arbitrary expressions there.
Hi,
Would it be possible to allow using self.field in cmd! macros ?
For example, this would allow to use a struct to store common args of commands.
I have not attempted to make the change, so that i don't know if it would be possible.
If the
self.
is removed from the above code, the compiler hints at something that would work.The text was updated successfully, but these errors were encountered: