mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
16 lines
211 B
Rust
16 lines
211 B
Rust
//@ 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();
|
|
}
|