79108049

Date: 2024-10-20 20:59:24
Score: 0.5
Natty:
Report link

If you replace the print statements, it works. The problem was that you can't borrow s var as an immutable while it is being borrowed by r1 var as mutable.

// ** this compiles **
//println!("{}",s);
println!("{}",r1);
println!("{}",s);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vadtam