rust/src/test/ui/deriving/deriving-clone-generic-struct.rs
2019-07-27 18:56:16 +03:00

14 lines
187 B
Rust

// run-pass
// pretty-expanded FIXME #23616
#[derive(Clone)]
struct S<T> {
foo: (),
bar: (),
baz: T,
}
pub fn main() {
let _ = S { foo: (), bar: (), baz: 1 }.clone();
}