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

11 lines
168 B
Rust

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