Why does #[derive(Show)] not work anymore?

前端 未结 2 2019
离开以前
离开以前 2021-01-07 21:51

With today\'s Rust nightly the following code doesn\'t compile anymore:

#[derive(Show)]
enum S {
    A,
    B
}

fn main() {
    println!(\"{}\", S::A);
}
         


        
2条回答
提交回复
热议问题