summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issue-103599.stderr
blob: 82038c1dceb370747f8b04cfff6322487815d508 (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
   |
   = help: a `loop` may express intention better if this is on purpose
   = note: `#[warn(unconditional_recursion)]` on by default

warning: 1 warning emitted