2015-06-02 06:31:40 -05:00
|
|
|
#![deny(dead_code)]
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
enum Enum {
|
2022-06-09 22:14:24 -05:00
|
|
|
Variant1, //~ ERROR: variant `Variant1` is never constructed
|
2015-06-02 06:31:40 -05:00
|
|
|
Variant2,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let e = Enum::Variant2;
|
|
|
|
e.clone();
|
|
|
|
}
|