summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-91949-hangs-on-recursion.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/traits/issue-91949-hangs-on-recursion.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/traits/issue-91949-hangs-on-recursion.stderr')
-rw-r--r--tests/ui/traits/issue-91949-hangs-on-recursion.stderr25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/ui/traits/issue-91949-hangs-on-recursion.stderr b/tests/ui/traits/issue-91949-hangs-on-recursion.stderr
new file mode 100644
index 000000000..1f18c5daf
--- /dev/null
+++ b/tests/ui/traits/issue-91949-hangs-on-recursion.stderr
@@ -0,0 +1,25 @@
+warning: function cannot return without recursing
+ --> $DIR/issue-91949-hangs-on-recursion.rs:23:1
+ |
+LL | / fn recurse<T>(elements: T) -> Vec<char>
+LL | | where
+LL | | T: Iterator<Item = ()>,
+ | |___________________________^ cannot return without recursing
+LL | {
+LL | recurse(IteratorOfWrapped(elements).map(|t| t.0))
+ | ------------------------------------------------- recursive call site
+ |
+ = help: a `loop` may express intention better if this is on purpose
+ = note: `#[warn(unconditional_recursion)]` on by default
+
+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`)
+ = note: required for `std::iter::Empty<()>` to implement `Iterator`
+ = note: 171 redundant requirements hidden
+ = note: required for `IteratorOfWrapped<(), Map<IteratorOfWrapped<(), Map<IteratorOfWrapped<(), Map<..., ...>>, ...>>, ...>>` to implement `Iterator`
+ = 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'
+
+error: aborting due to previous error; 1 warning emitted
+
+For more information about this error, try `rustc --explain E0275`.