summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issue-103599.stderr
blob: 79fb355dde75cbeef2a0e4ee4e04ee8b9009be9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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