// -*- rust -*- enum clam { a(T, int), b, } fn uhoh(v: [clam]/~) { alt v[1] { a::(t, u) { #debug("incorrect"); log(debug, u); fail; } b:: { #debug("correct"); } } } fn main() { let v: [clam]/~ = [b::, b::, a::(42, 17)]/~; uhoh::(v); }