rust/tests/ui/deriving/deriving-clone-enum.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
132 B
Rust
Raw Permalink Normal View History

//@ run-pass
#![allow(dead_code)]
#[derive(Clone)]
enum E {
A,
B(()),
C
}
pub fn main() {
let _ = E::A.clone();
}