Is pattern-alt the only way to select from tag types, ie. I tried this
code using if

tag tt { a(); b();}

fn main() {
  let tt t = a();
  if (t == a()) {
    log "equal";
  }
}

and got a compile error

Fatal error: exception Failure("forcing non-scalar referent of type
[b32,([]|[])] to register")

Pete
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to