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

you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 1 year ago (4 children)

let a = String::from(“Hello, world!”).into()

I’ll see myself out.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 1 year ago (3 children)

    At least be fair and cut out the .into()

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments