about summary refs log tree commit diff
path: root/src/test/compile-fail/match-struct.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-24/+0
2016-05-02update test cases to reflect new messagesNiko Matsakis-4/+3
2015-01-12Fix testsuite errorsmdinger-1/+6
2015-01-08Update compile fail tests to use isize.Huon Wilson-2/+2
2014-11-17Switch to purely namespaced enumsSteven Fackler-1/+1
This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [breaking-change]
2014-08-24Adjust the error messages to match the pattern "expected foo, found bar"Jonas Hietala-1/+1
Closes #8492
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.