1 warning: function cannot return without recursing
2 --> $DIR/recursive.rs:3:1
4 LL | const fn f<T>(x: T) {
5 | ^^^^^^^^^^^^^^^^^^^ cannot return without recursing
7 | ---- recursive call site
9 = help: a `loop` may express intention better if this is on purpose
10 = note: `#[warn(unconditional_recursion)]` on by default
12 error[E0080]: evaluation of constant value failed
13 --> $DIR/recursive.rs:4:5
16 | ^^^^ reached the configured maximum number of stack frames
18 note: inside `f::<i32>`
19 --> $DIR/recursive.rs:4:5
23 note: [... 126 additional calls inside `f::<i32>` ...]
24 --> $DIR/recursive.rs:4:5
29 --> $DIR/recursive.rs:8:15
31 LL | const X: () = f(1);
34 error: aborting due to previous error; 1 warning emitted
36 For more information about this error, try `rustc --explain E0080`.