fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
463 B13 linesraw
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