this post was submitted on 08 Jun 2025
520 points (97.6% liked)

Programmer Humor

36513 readers
64 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 24 points 1 week ago (1 children)

Rust: Borrow handler got mad at you for asking

(I'd assume)

[–] [email protected] 19 points 1 week ago (1 children)

It's either a reference to an object instance, or the instance itself (depending on whether you specified &mut self, &self or just self).

[–] [email protected] 13 points 1 week ago

Don't forget Self, the type of self.