2016-09-07 03:27:57 -05:00
|
|
|
#![feature(custom_attribute, attr_literals)]
|
|
|
|
#![miri(memory_size=0)]
|
2016-07-05 06:04:53 -05:00
|
|
|
|
|
|
|
fn bar() {
|
|
|
|
let x = 5;
|
|
|
|
assert_eq!(x, 6);
|
|
|
|
}
|
|
|
|
|
2016-07-06 10:55:05 -05:00
|
|
|
fn main() {
|
|
|
|
bar(); //~ ERROR tried to allocate 4 more bytes, but only 0 bytes are free of the 0 byte memory
|
2016-07-05 06:04:53 -05:00
|
|
|
}
|