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