7
comments
Rust isn't real. Its just a bit much of abbreviated gibberish created by religious fanatics worshipping safe programming practices and reasonable error handling!
12 0 ReplyWait until you learn about Lisp
2 0 ReplyYou're going to borrow-checker hell now
2 0 Reply
ngl, this meme tickled me
6 0 Replyis that valid syntax in any context? i dont think it is
1 0 ReplyPretty 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:
pub pint: Box
For a function parameter, you need an
impl
and can't have thepub
:pint: impl Sized
Obviously, you could define your own struct or generic that also happens to be called
Sized
, but yeah, that's cheating.4 0 Replythats what i figured. thanks :-)
2 0 Reply
You've viewed 7 comments.
Scroll to top