rust/tests/ui/explicit-tail-calls/ctfe-id-unlimited.return.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-06-28 10:34:10 -05:00
error[E0080]: evaluation of constant value failed
--> $DIR/ctfe-id-unlimited.rs:17:42
|
LL | #[cfg(r#return)] _ => return inner(acc + 1, n - 1),
| ^^^^^^^^^^^^^^^^^^^^^ reached the configured maximum number of stack frames
|
note: inside `inner`
--> $DIR/ctfe-id-unlimited.rs:17:42
|
LL | #[cfg(r#return)] _ => return inner(acc + 1, n - 1),
| ^^^^^^^^^^^^^^^^^^^^^
note: [... 125 additional calls inside `inner` ...]
--> $DIR/ctfe-id-unlimited.rs:17:42
|
LL | #[cfg(r#return)] _ => return inner(acc + 1, n - 1),
| ^^^^^^^^^^^^^^^^^^^^^
note: inside `rec_id`
--> $DIR/ctfe-id-unlimited.rs:22:5
|
LL | inner(0, n)
| ^^^^^^^^^^^
note: inside `ID_ED`
--> $DIR/ctfe-id-unlimited.rs:29:20
|
LL | const ID_ED: u32 = rec_id(ORIGINAL);
| ^^^^^^^^^^^^^^^^
note: erroneous constant encountered
--> $DIR/ctfe-id-unlimited.rs:31:40
|
LL | const ASSERT: () = assert!(ORIGINAL == ID_ED);
| ^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.