Printing a string



examples/intro/formatting-required/src/main.rs
fn main() {
    let name = "Foo";
    println!(name);
}

error: format argument must be a string literal
 --> examples/intro/formatting_required.rs:3:14
  |
3 |     println!(name);
  |              ^^^^
  |
help: you might be missing a string literal to format with
  |
3 |     println!("{}", name);
  |              +++++

error: aborting due to previous error