
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
14 lines
178 B
Rust
14 lines
178 B
Rust
//@ run-pass
|
|
|
|
#![allow(dead_code)]
|
|
|
|
#[derive(Clone)]
|
|
struct S<T> {
|
|
foo: (),
|
|
bar: (),
|
|
baz: T,
|
|
}
|
|
|
|
pub fn main() {
|
|
let _ = S { foo: (), bar: (), baz: 1 }.clone();
|
|
}
|