Example

Here's an example using a reference that outputs:

alfa is apple
bravo is apple

SOURCE CODE

fn main() {
  let alfa = String::from("apple");
  let bravo = &alfa;

  println!("alfa is {alfa}");
  println!("bravo is {bravo}");
}

CODE RUNNER