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