rust/tests/compile-fail/stack_limit.rs

21 lines
257 B
Rust
Raw Normal View History

#![feature(custom_attribute, attr_literals)]
#![miri(stack_limit=2)]
2016-07-05 06:23:58 -05:00
fn bar() {
foo();
}
fn foo() {
cake(); //~ ERROR reached the configured maximum number of stack frames
}
fn cake() {
flubber();
}
fn flubber() {}
fn main() {
bar();
}