1
Fork 0

test: adjust for the move to MIR-based const checking.

This commit is contained in:
Eduard Burtescu 2016-05-03 01:57:35 +03:00
parent 78884b7659
commit 4f5900aefa
19 changed files with 47 additions and 75 deletions

View file

@ -140,4 +140,5 @@ static STATIC19: Box<isize> =
pub fn main() {
let y = { static x: Box<isize> = box 3; x };
//~^ ERROR allocations are not allowed in statics
//~^^ ERROR cannot move out of static item
}