you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago* (1 child)

Note that when you change num to take &self instead, this works out (you also need to mark foo as mutable, of course).

  • source
  • parent
  • hideshow 2 child comments