about summary refs log tree commit diff
path: root/src/test/compile-fail/non-constant-expr-for-vec-repeat.rs
AgeCommit message (Collapse)AuthorLines
2017-06-22remove duplicate E0435 testAlex Burka-19/+0
2017-06-22change span label for E0435 (fix #41871)Alex Burka-1/+1
2017-02-25rustc_const_eval: always demand typeck_tables for evaluating constants.Eduard-Mihai Burtescu-2/+0
2016-12-28rustc: separate bodies for static/(associated)const and embedded constants.Eduard-Mihai Burtescu-3/+4
2016-07-22refactor constant evaluation error reportingAriel Ben-Yehuda-1/+3
Refactor constant evaluation to use a single error reporting function that reports a type-error-like message. Also, unify all error codes with the "constant evaluation error" message to just E0080, and similarly for a few other duplicate codes. The old situation was a total mess, and now that we have *something* we can further iterate on the UX.
2015-04-01Fallout from changes for overflow-checking during constant evaluation.Felix S. Klock II-1/+2
2015-01-08Update compile fail tests to use usize.Huon Wilson-1/+1
2014-12-20Allow use of `[_ ; n]` syntax for fixed length and repeating arrays.Nick Cameron-1/+1
This does NOT break any existing programs because the `[_, ..n]` syntax is also supported.
2014-08-24Adjust the error messages to match the pattern "expected foo, found bar"Jonas Hietala-1/+1
Closes #8492
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-1/+1
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2013-03-18Add tests for const exprs in fixed vec length type and vec repeat.Luqman Aden-0/+17