diff options
Diffstat (limited to 'tests/ui/deriving/deriving-clone-generic-struct.rs')
-rw-r--r-- | tests/ui/deriving/deriving-clone-generic-struct.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/deriving/deriving-clone-generic-struct.rs b/tests/ui/deriving/deriving-clone-generic-struct.rs new file mode 100644 index 000000000..4374d1594 --- /dev/null +++ b/tests/ui/deriving/deriving-clone-generic-struct.rs @@ -0,0 +1,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(); +} |