mozilla/rust — pull request #5046 by sanxiyn (2013-02-20 01:54:41+00:00)
Title: Check type when struct is matched against enum-like pattern

Previously check always succeeded because struct type was derived from the matched expression, not the matched pattern.