rust/tests/ui/deriving/deriving-clone-generic-struct.rs
2023-01-11 09:32:08 +00:00

16 lines
209 B
Rust

// 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();
}