summary refs log tree commit diff
path: root/src/test/compile-fail/match-struct.rs
AgeCommit message (Collapse)AuthorLines
2014-06-23libsyntax: Disallow struct literals after `if`, `while`, `match`, andPatrick Walton-1/+1
`for...in`. Closes #14803. If you used a structure literal after one of these keywords, surround it in parentheses. [breaking-change]
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2013-02-28Fix reversed current/expected typeJeong YunWon-2/+1
Fix some reversed type of arm pattern and type of search pattern in error message.
2013-02-20Check type when struct is matched against enum-like patternSeo Sanghyeon-0/+11
Previously check always succeeded because struct type was derived from the matched expression, not the matched pattern.