You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... which I think it shouldn't, since that last pattern is (or should be) unreachable. When replacing the fixed-size vector with a tuple, it certainly is:
fnmain(){match(3,5){(a, b) => println("ok"),
_ => ()};}
error: unreachable pattern
The text was updated successfully, but these errors were encountered:
Hi, it looks like #7784 was accidentally filed too; I'm closing this one as a dup because that issue uses the appropriate jargon, which helps when searching.
I'm trying to use pattern matching with fixed-size vectors, like this:
However, this doesn't compile (I'm using 0.6 on Windows):
After adding a wildcard the program compiles...
... which I think it shouldn't, since that last pattern is (or should be) unreachable. When replacing the fixed-size vector with a tuple, it certainly is:
The text was updated successfully, but these errors were encountered: