about summary refs log tree commit diff
path: root/tests/ui/drop/drop-uninhabited-enum.rs
blob: 2ac6dc8e9ea3e7088f6e18e7301e51d2ddfc2e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ run-pass
#![allow(dead_code)]
#![allow(unused_variables)]

enum Foo { }

impl Drop for Foo {
    fn drop(&mut self) { }
}

fn foo(x: Foo) { }

fn main() { }