R

Ravina • 3.96K Points
Extraordinary

Q. What happens if a variable is moved and then used again?

  • (A) It works as expected
  • (B) It panics at runtime
  • (C) It causes a compile-time error
  • (D) It gets cloned
  • Correct Answer - Option(C)
  • Views: 30
  • Filed under category Rust
  • Hashtags:

Explanation by: Ravina

After a move, using the variable again results in a compile-time error.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.