mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
13 lines
189 B
Rust
13 lines
189 B
Rust
#![deny(dead_code)]
|
|
|
|
#[derive(Clone)]
|
|
enum Enum {
|
|
Variant1, //~ ERROR: variant `Variant1` is never constructed
|
|
Variant2,
|
|
}
|
|
|
|
fn main() {
|
|
let e = Enum::Variant2;
|
|
e.clone();
|
|
}
|