Fix const evaluation of cast expression from bool
This commit is contained in:
parent
d0c314205c
commit
46cf384ba9
2 changed files with 8 additions and 4 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue