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