This program illustrates a small but irritating inconsistency between
tuple-shaped enum variants and tuple-shaped structs:
// trailing comma allowed here:
struct F1(int,int,);
struct F2(int,int);
// trailing comma disallowed here:
/*enum G1 {
H1(int,int,)
}*/
enum G2 {
H2(int,int)
}
In structs, there can be a trailing comma after the types. In enums, there
cannot be. I feel strongly that these should be the same, though I don't care
which one it is.
Anyone?
John
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev