fork/rust

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

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

master
875 B26 linesraw
1warning: function cannot return without recursing
2  --> $DIR/issue-8727.rs:7:1
3   |
4LL | fn generic<T>() {
5   | ^^^^^^^^^^^^^^^ cannot return without recursing
6LL |     generic::<Option<T>>();
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
12error: reached the recursion limit while instantiating `generic::<Option<Option<Option<Option<Option<...>>>>>>`
13  --> $DIR/issue-8727.rs:8:5
14   |
15LL |     generic::<Option<T>>();
16   |     ^^^^^^^^^^^^^^^^^^^^^^
17   |
18note: `generic` defined here
19  --> $DIR/issue-8727.rs:7:1
20   |
21LL | fn generic<T>() {
22   | ^^^^^^^^^^^^^^^
23   = note: the full type name has been written to '$TEST_BUILD_DIR/issues/issue-8727/issue-8727.long-type.txt'
24
25error: aborting due to previous error; 1 warning emitted
26