]> git.lizzy.rs Git - rust.git/blob - src/test/ui/drop/drop-uninhabited-enum.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / drop / drop-uninhabited-enum.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4 // pretty-expanded FIXME #23616
5
6 enum Foo { }
7
8 impl Drop for Foo {
9     fn drop(&mut self) { }
10 }
11
12 fn foo(x: Foo) { }
13
14 fn main() { }