rust/tests/compile-fail/stack_limit.rs
2016-07-05 13:23:58 +02:00

21 lines
244 B
Rust

#![feature(custom_attribute)]
#![miri(stack_limit="2")]
fn bar() {
foo();
}
fn foo() {
cake(); //~ ERROR reached the configured maximum number of stack frames
}
fn cake() {
flubber();
}
fn flubber() {}
fn main() {
bar();
}