You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
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.