]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-8727.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-8727.stderr
1 warning: function cannot return without recursing
2 --> $DIR/issue-8727.rs:7:1
3 |
4 LL | fn generic<T>() {
5 | ^^^^^^^^^^^^^^^ cannot return without recursing
6 LL | 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
12 error: reached the recursion limit while instantiating `generic::<Option<Option<Option<Option<Option<...>>>>>>`
13 --> $DIR/issue-8727.rs:8:5
14 |
15 LL | generic::<Option<T>>();
16 | ^^^^^^^^^^^^^^^^^^^^^^
17 |
18 note: `generic` defined here
19 --> $DIR/issue-8727.rs:7:1
20 |
21 LL | 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
25 error: aborting due to previous error; 1 warning emitted
26