21 lines
244 B
Rust
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();
|
||
|
}
|