This code works:
let x = Some(2);
println!("{:?}", x);
But this does not:
let x = Some(2);
println!("{}", x);
5 | println!("{}", x);
| ^ trait `std::option::Option: std::fmt::Display` not satisfied
|
= note: `std::option::Option` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
= note: required by `std::fmt::Display::fmt`
Why? What's :? in that context?