mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
209 B
Rust
15 lines
209 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();
|
|
}
|