2022-05-22 16:13:25 +09:00
warning: function cannot return without recursing
2022-11-16 19:09:57 -08:00
--> $DIR/issue-91949-hangs-on-recursion.rs:23:1
2022-05-22 16:13:25 +09:00
|
LL | / fn recurse<T>(elements: T) -> Vec<char>
LL | | where
LL | | T: Iterator<Item = ()>,
2022-07-23 14:42:54 +02:00
| |___________________________^ cannot return without recursing
LL | {
LL | recurse(IteratorOfWrapped(elements).map(|t| t.0))
| ------------------------------------------------- recursive call site
2022-05-22 16:13:25 +09:00
|
= 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
2022-05-22 16:13:25 +09:00
error[E0275]: overflow evaluating the requirement `(): Sized`
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "512"]` attribute to your crate (`issue_91949_hangs_on_recursion`)
2022-08-15 21:31:37 +01:00
= note: required for `std::iter::Empty<()>` to implement `Iterator`
2022-05-22 16:13:25 +09:00
= note: 171 redundant requirements hidden
2022-11-25 17:14:25 -08:00
= note: required for `IteratorOfWrapped<(), Map<IteratorOfWrapped<(), Map<IteratorOfWrapped<(), Map<..., ...>>, ...>>, ...>>` to implement `Iterator`
2022-11-16 19:09:57 -08:00
= note: the full type name has been written to '$TEST_BUILD_DIR/traits/issue-91949-hangs-on-recursion/issue-91949-hangs-on-recursion.long-type-hash.txt'
2022-05-22 16:13:25 +09:00
error: aborting due to previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0275`.