News for hackers. Stuff that matters.
Re:What's in the Box? by estebank on Monday April 19, 2021 @12:06PM (#26864326)
Preemptive comment: the following output towards the second half:

    help: function arguments must have a statically known size, borrowed types always have a known size
      |
    3 | fn f<T>(&t: T)
      |         ^
is a bug that already has a PR to fix. It's supposed to point at the T and suggest the following instead:

    help: function arguments must have a statically known size, borrowed types always have a known size
      |
    3 | fn f<T>(t: &T)
      |            ^
Re:What's in the Box? by fasterthanlime on Monday April 19, 2021 @01:36PM (#26865642)
I've added a link to the PR directly in the article to clear up the confusion!
Re:What's in the Box? by kzrdude on Monday April 19, 2021 @06:08PM (#26868449)
You changed the function signature between your two code snippets, that makes it hard to understand what you mean.
Re:What's in the Box? by CBLT on Monday April 19, 2021 @06:35PM (#26868646)
Check out the context from TFA: this is a help message prescribing a change you could make (inserting a &). The signature is different because it's prescribing a different signature to fix the issue.