Made with KolourPaint and screenshots from Kate (with the GitHub theme).

  • nebeker@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 days ago

    And bow to the compiler’s whims? I think not!

    This shouldn’t compile, because .into needs the type from the left side and let needs the type from the right side.

    • Haradion@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      If type constraints later in the function let the compiler infer the type, this syntax totally works.