summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/deriving-clone-generic-struct.rs
blob: 4374d1594e4655272a53e3ffd9c7961fd430d574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
// pretty-expanded FIXME #23616

#![allow(dead_code)]

#[derive(Clone)]
struct S<T> {
    foo: (),
    bar: (),
    baz: T,
}

pub fn main() {
    let _ = S { foo: (), bar: (), baz: 1 }.clone();
}