error[E0164]: expected tuple struct/variant, found associated constant `::B` --> $DIR/E0164.rs:20:9 | LL | Foo::B(i) => i, //~ ERROR E0164 | ^^^^^^^^^ not a tuple variant or struct error: aborting due to previous error For more information about this error, try `rustc --explain E0164`.