2022-01-13 18:00:00 -06:00
|
|
|
warning: function cannot return without recursing
|
2022-11-16 21:09:57 -06:00
|
|
|
--> $DIR/issue-83150.rs:11:1
|
2022-01-13 18:00:00 -06:00
|
|
|
|
|
|
|
|
LL | fn func<T: Iterator<Item = u8>>(iter: &mut T) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
|
|
|
|
LL | func(&mut iter.map(|x| x + 1))
|
|
|
|
| ------------------------------ 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
|
2022-01-13 18:00:00 -06:00
|
|
|
|
2022-11-19 13:43:12 -06:00
|
|
|
error[E0275]: overflow evaluating the requirement `Map<&mut Map<&mut Map<&mut Map<..., ...>, ...>, ...>, ...>: Iterator`
|
2021-03-23 06:41:26 -05:00
|
|
|
|
|
2022-05-17 09:18:40 -05:00
|
|
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`issue_83150`)
|
2022-11-25 21:08:46 -06:00
|
|
|
= note: required for `&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<..., ...>, ...>, ...>, ...>, ...>, ...>, ...>` to implement `Iterator`
|
2022-11-16 21:09:57 -06:00
|
|
|
= note: the full type name has been written to '$TEST_BUILD_DIR/recursion/issue-83150/issue-83150.long-type-hash.txt'
|
2021-03-23 06:41:26 -05:00
|
|
|
|
2022-01-13 18:00:00 -06:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2021-03-23 06:41:26 -05:00
|
|
|
|
2022-05-17 09:18:40 -05:00
|
|
|
For more information about this error, try `rustc --explain E0275`.
|