rust/tests/compile-fail/stack_limit.rs
2016-09-07 10:27:57 +02:00

21 lines
257 B
Rust

#![feature(custom_attribute, attr_literals)]
#![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();
}