]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deriving/deriving-clone-generic-struct.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / deriving / deriving-clone-generic-struct.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 #[derive(Clone)]
5 struct S<T> {
6     foo: (),
7     bar: (),
8     baz: T,
9 }
10
11 pub fn main() {
12     let _ = S { foo: (), bar: (), baz: 1 }.clone();
13 }