]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/issue-91949-hangs-on-recursion.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / traits / issue-91949-hangs-on-recursion.stderr
1 warning: function cannot return without recursing
2 --> $DIR/issue-91949-hangs-on-recursion.rs:23:1
3 |
4 LL | / fn recurse<T>(elements: T) -> Vec<char>
5 LL | | where
6 LL | | T: Iterator<Item = ()>,
7 | |___________________________^ cannot return without recursing
8 LL | {
9 LL | recurse(IteratorOfWrapped(elements).map(|t| t.0))
10 | ------------------------------------------------- recursive call site
11 |
12 = help: a `loop` may express intention better if this is on purpose
13 = note: `#[warn(unconditional_recursion)]` on by default
14
15 error[E0275]: overflow evaluating the requirement `(): Sized`
16 |
17 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "512"]` attribute to your crate (`issue_91949_hangs_on_recursion`)
18 = note: required for `std::iter::Empty<()>` to implement `Iterator`
19 = note: 171 redundant requirements hidden
20 = note: required for `IteratorOfWrapped<(), Map<IteratorOfWrapped<(), Map<IteratorOfWrapped<(), Map<..., ...>>, ...>>, ...>>` to implement `Iterator`
21 = 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'
22
23 error: aborting due to previous error; 1 warning emitted
24
25 For more information about this error, try `rustc --explain E0275`.