2025-07-24 19:07:20 +05:00
|
|
|
//! Regression test for https://github.com/rust-lang/rust/issues/15063
|
|
|
|
|
|
2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
#![allow(unused_variables)]
|
2014-11-03 00:58:00 +01:00
|
|
|
enum Two { A, B}
|
|
|
|
|
impl Drop for Two {
|
|
|
|
|
fn drop(&mut self) {
|
|
|
|
|
println!("Dropping!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fn main() {
|
2014-11-06 00:05:53 -08:00
|
|
|
let k = Two::A;
|
2014-11-03 00:58:00 +01:00
|
|
|
}
|