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

      • nebeker@programming.dev
        cake
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months 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
          ·
          6 months ago

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