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