Rollup merge of #23275 - aochagavia:constants, r=eddyb

Fixes #23260

r? @eddyb
This commit is contained in:
Manish Goregaokar 2015-03-12 09:14:44 +05:30
commit cc6ef80fa4
4 changed files with 90 additions and 39 deletions

View file

@ -19,7 +19,7 @@ fn main() {
//~| found `()`
//~| expected usize
//~| found ()
//~| ERROR expected constant integer for repeat count, found non-constant expression
//~| ERROR expected positive integer for repeat count, found tuple
let c = [0; true];
//~^ ERROR mismatched types
//~| expected `usize`