]> git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/issue-100075-2.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / issue-100075-2.stderr
1 warning: function cannot return without recursing
2 --> $DIR/issue-100075-2.rs:1:1
3 |
4 LL | fn opaque<T>(t: T) -> impl Sized {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
6 ...
7 LL | opaque(Some(t))
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 error[E0720]: cannot resolve opaque type
14 --> $DIR/issue-100075-2.rs:1:23
15 |
16 LL | fn opaque<T>(t: T) -> impl Sized {
17 | ^^^^^^^^^^ recursive opaque type
18 ...
19 LL | opaque(Some(t))
20 | --------------- returning here with type `impl Sized`
21
22 error: aborting due to previous error; 1 warning emitted
23
24 For more information about this error, try `rustc --explain E0720`.