summaryrefslogtreecommitdiffstats
path: root/tests/ui/drop/drop-uninhabited-enum.rs
blob: b3566f68533bdbbe2cc40ea5857e429a39cdf53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
// pretty-expanded FIXME #23616

enum Foo { }

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

fn foo(x: Foo) { }

fn main() { }