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