]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8727.polonius.stderr
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-8727.polonius.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    = note: `#[warn(unconditional_recursion)]` on by default
10    = help: a `loop` may express intention better if this is on purpose
11
12 error: reached the recursion limit while instantiating `generic::<Option<Option<Option<O...>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
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.polonius/issue-8727.long-type.txt'
24
25 error: aborting due to previous error; 1 warning emitted
26