rust/tests/ui/drop/drop-uninhabited-enum.rs
2023-01-11 09:32:08 +00:00

15 lines
192 B
Rust

// 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() { }