summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/deriving-clone-enum.rs
blob: 09e74974072546eabd406033eda06384fab2e0e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

#[derive(Clone)]
enum E {
    A,
    B(()),
    C
}

pub fn main() {
    let _ = E::A.clone();
}