Step 5

Using bravo gives us the String value output of "apple" the same way alfa did before the move.

Ownership 7

If we combine and run all the code we've use so far everything works.

SOURCE CODE

fn main() {
  let alfa = String::from("apple");
  println!("alfa has {alfa}");

  let bravo = alfa;
  println!("bravo has {bravo}");
}

CODE RUNNER