Fix const evaluation of cast expression from bool

This commit is contained in:
Piotr Jawniak 2014-08-23 13:59:39 +02:00
parent d0c314205c
commit 46cf384ba9
2 changed files with 8 additions and 4 deletions

View file

@ -16,4 +16,5 @@ fn main() {
let _a: [bool, ..1 as uint];
let _b: [int, ..SIZE as uint] = [1, ..SIZE as uint];
let _c: [bool, ..'\n' as uint] = [true, ..'\n' as uint];
let _d: [bool, ..true as uint] = [true, ..true as uint];
}