]> git.proxmox.com Git - rustc.git/blob - tests/ui/impl-trait/issue-103599.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / impl-trait / issue-103599.stderr
1 warning: function cannot return without recursing
2 --> $DIR/issue-103599.rs:5:1
3 |
4 LL | fn wrap(x: impl T) -> impl T {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
6 LL |
7 LL | wrap(wrap(x))
8 | ------- recursive call site
9 |
10 = help: a `loop` may express intention better if this is on purpose
11 = note: `#[warn(unconditional_recursion)]` on by default
12
13 warning: 1 warning emitted
14