about summary refs log tree commit diff
path: root/src/test/compile-fail/refutable-pattern-errors.rs
AgeCommit message (Collapse)AuthorLines
2014-09-30librustc: Forbid `..` in range patterns.Patrick Walton-2/+2
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-1/+1
floating point numbers for real. This will break code that looks like: let mut x = 0; while ... { x += 1; } println!("{}", x); Change that code to: let mut x = 0i; while ... { x += 1; } println!("{}", x); Closes #15201. [breaking-change]
2014-06-20Address review commentsJakub Wieczorek-2/+2
2014-06-20Provide a witness pattern for non-exhaustive patternsJakub Wieczorek-2/+2
Fixed #4321
2014-06-20Check pattern refutability the same way exhaustiveness is checkedJakub Wieczorek-0/+18