2018-08-21 01:09:15 -05:00
|
|
|
warning: function cannot return without recursing
|
2020-09-15 21:45:58 -05:00
|
|
|
--> $DIR/issue-8727.rs:7:1
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | fn generic<T>() {
|
2018-08-21 01:09:15 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ cannot return without recursing
|
2018-07-15 16:11:54 -05:00
|
|
|
LL | generic::<Option<T>>();
|
|
|
|
| ---------------------- recursive call site
|
|
|
|
|
|
|
|
|
= help: a `loop` may express intention better if this is on purpose
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(unconditional_recursion)]` on by default
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2022-11-15 19:38:39 -06:00
|
|
|
error: reached the recursion limit while instantiating `generic::<Option<Option<Option<Option<Option<...>>>>>>`
|
2020-09-15 21:45:58 -05:00
|
|
|
--> $DIR/issue-8727.rs:8:5
|
2020-06-21 21:32:35 -05:00
|
|
|
|
|
|
|
|
LL | generic::<Option<T>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: `generic` defined here
|
2020-09-15 21:45:58 -05:00
|
|
|
--> $DIR/issue-8727.rs:7:1
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2020-08-12 16:02:14 -05:00
|
|
|
LL | fn generic<T>() {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2020-09-15 21:45:58 -05:00
|
|
|
= note: the full type name has been written to '$TEST_BUILD_DIR/issues/issue-8727/issue-8727.long-type.txt'
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2020-03-11 10:30:09 -05:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2018-07-15 16:11:54 -05:00
|
|
|
|