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