]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derive-uninhabited-enum-38885.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / derive-uninhabited-enum-38885.rs
1 // compile-pass
2 // compile-flags: -Wunused
3
4 // ensure there are no special warnings about uninhabited types
5 // when deriving Debug on an empty enum
6
7 #[derive(Debug)]
8 enum Void {} //~ WARN never used
9
10 #[derive(Debug)]
11 enum Foo { //~ WARN never used
12     Bar(u8),
13     Void(Void),
14 }
15
16 fn main() {}
17