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.

15 lines
163 B
Rust
Raw Normal View History

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