With today\'s Rust nightly the following code doesn\'t compile anymore:
#[derive(Show)] enum S { A, B } fn main() { println!(\"{}\", S::A); } >
The answer is to use {:?} instead of {} in format!.
{:?}
{}
format!