blob: 82108fa9c13bfc44e8164f85f0152cb0e3e1f48c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![deny(dead_code)]
#[derive(Clone)]
enum Enum {
Variant1, //~ ERROR: variant `Variant1` is never constructed
Variant2,
}
fn main() {
let e = Enum::Variant2;
e.clone();
}
|