blob: 896e1c7ea8dd663be2e440170f875f751e6bf677 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
warning: function cannot return without recursing
--> $DIR/issue-85031-2.rs:12:5
|
LL | pub fn foo<const A: usize>() -> [(); A - 0] {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
LL | Self::foo()
| ----------- recursive call site
|
= help: a `loop` may express intention better if this is on purpose
= note: `#[warn(unconditional_recursion)]` on by default
warning: 1 warning emitted
|