mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 17:07:36 +00:00

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