2017-08-07 17:40:18 -07:00
|
|
|
// Validation forces more allocation; disable it.
|
|
|
|
// compile-flags: -Zmir-emit-validate=0
|
2016-10-16 19:58:22 -06:00
|
|
|
#![feature(box_syntax, custom_attribute, attr_literals)]
|
2017-05-26 20:27:39 -07:00
|
|
|
#![miri(memory_size=2048)]
|
2016-07-05 13:04:53 +02:00
|
|
|
|
2016-10-16 19:58:22 -06:00
|
|
|
fn main() {
|
|
|
|
loop {
|
|
|
|
::std::mem::forget(box 42); //~ ERROR tried to allocate 4 more bytes
|
2016-07-05 13:04:53 +02:00
|
|
|
}
|
|
|
|
}
|