Evaluate repeat expression lengths as late as possible
This commit is contained in:
parent
8ff785011b
commit
799b15ed96
46 changed files with 279 additions and 264 deletions
|
@ -19,6 +19,7 @@ const A_I8_I
|
|||
: [u32; (i8::MAX as usize) + 1]
|
||||
= [0; (i8::MAX + 1) as usize];
|
||||
//~^ ERROR evaluation of constant value failed
|
||||
//~| ERROR mismatched types
|
||||
|
||||
fn main() {
|
||||
foo(&A_I8_I[..]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue