mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
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();
|
|
}
|