blob: a8198abafa0081c0f0bbdff5c3b2299a1c3656e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  | 
//! Regression test for https://github.com/rust-lang/rust/issues/15063
//@ run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
enum Two { A, B}
impl Drop for Two {
    fn drop(&mut self) {
        println!("Dropping!");
    }
}
fn main() {
    let k = Two::A;
}
 
  |