198
After a day of coding Rust...
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
is that valid syntax in any context? i dont think it is
Pretty sure, it's not. That's why I included the error highlighting.
To make it a valid struct field, you'd need to throw in a Box+dyn:
For a function parameter, you need an
impl
and can't have thepub
:Obviously, you could define your own struct or generic that also happens to be called
Sized
, but yeah, that's cheating.thats what i figured. thanks :-)