Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 360 Bytes
// build-pass (FIXME(62277): could be check-pass?)
// compile-flags: -Wunused
// ensure there are no special warnings about uninhabited types
// when deriving Debug on an empty enum
enum Void {}
enum Foo {
Void(Void), //~ WARN never used
fn main() {
let x = Foo::Bar(42);
println!("{:?}", x);
You can’t perform that action at this time.