]> git.lizzy.rs Git - rust.git/blob - tests/ui/deriving/deriving-clone-generic-struct.rs
Rollup merge of #107427 - detrumi:builtin-impl-candidates, r=compiler-errors
[rust.git] / tests / ui / deriving / deriving-clone-generic-struct.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 #![allow(dead_code)]
5
6 #[derive(Clone)]
7 struct S<T> {
8     foo: (),
9     bar: (),
10     baz: T,
11 }
12
13 pub fn main() {
14     let _ = S { foo: (), bar: (), baz: 1 }.clone();
15 }