2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2021-05-21 19:35:49 +02:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2014-12-31 17:32:49 +13:00
|
|
|
#[derive(Clone)]
|
2013-03-04 15:33:05 -08:00
|
|
|
struct S<T> {
|
|
|
|
foo: (),
|
|
|
|
bar: (),
|
|
|
|
baz: T,
|
|
|
|
}
|
|
|
|
|
2013-05-16 14:15:37 +10:00
|
|
|
pub fn main() {
|
2015-01-25 22:05:03 +01:00
|
|
|
let _ = S { foo: (), bar: (), baz: 1 }.clone();
|
2013-05-16 14:15:37 +10:00
|
|
|
}
|