S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which of the following is a correct lifetime annotation?

  • (A) 'lifetime
  • (B) &'a str
  • (C) &str'a
  • (D) str:'a
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
Correct syntax is &'a str for a reference with a lifetime.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.