A

Admin • 831.35K Points
Coach

Q. What happens when two mutable references exist simultaneously in Rust?

  • (A) Compile-time error
  • (B) One is dropped
  • (C) Both succeed
  • (D) Runtime panic
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
Rust disallows multiple mutable references at compile time.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.