test: adjust for the move to MIR-based const checking.
This commit is contained in:
parent
78884b7659
commit
4f5900aefa
19 changed files with 47 additions and 75 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue