rust/tests/ui/drop/drop-uninhabited-enum.rs
2024-02-16 20:02:50 +00:00

15 lines
194 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() { }