summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/deriving-clone-generic-enum.rs
blob: a344d7fc43a2e5a3d74360f42b88c3335b35f610 (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<T,U> {
    A(T),
    B(T,U),
    C
}

pub fn main() {
    let _ = E::A::<isize, isize>(1).clone();
}