]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8727.stderr
Better handling for exponential-sized types in misc places
[rust.git] / src / test / ui / issues / issue-8727.stderr
1 warning: function cannot return without recursing
2   --> $DIR/issue-8727.rs:6: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:7:5
14    |
15 LL |     generic::<Option<T>>();
16    |     ^^^^^^^^^^^^^^^^^^^^^^
17    |
18 note: `generic` defined here
19   --> $DIR/issue-8727.rs:6:1
20    |
21 LL | fn generic<T>() {
22    | ^^^^^^^^^^^^^^^
23
24 error: aborting due to previous error; 1 warning emitted
25