summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issue-103599.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-trait/issue-103599.stderr')
-rw-r--r--src/test/ui/impl-trait/issue-103599.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/impl-trait/issue-103599.stderr b/src/test/ui/impl-trait/issue-103599.stderr
new file mode 100644
index 000000000..79fb355dd
--- /dev/null
+++ b/src/test/ui/impl-trait/issue-103599.stderr
@@ -0,0 +1,14 @@
+warning: function cannot return without recursing
+ --> $DIR/issue-103599.rs:5:1
+ |
+LL | fn wrap(x: impl T) -> impl T {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
+LL |
+LL | wrap(wrap(x))
+ | ------- recursive call site
+ |
+ = note: `#[warn(unconditional_recursion)]` on by default
+ = help: a `loop` may express intention better if this is on purpose
+
+warning: 1 warning emitted
+