]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/nested-tait-inference2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / nested-tait-inference2.stderr
1 error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied
2 --> $DIR/nested-tait-inference2.rs:13:13
3 |
4 LL | fn foo() -> impl Foo<FooX> {
5 | ^^^^^^^^^^^^^^ the trait `Foo<FooX>` is not implemented for `()`
6 LL |
7 LL | ()
8 | -- return type was inferred to be `()` here
9 |
10 = help: the following other types implement trait `Foo<A>`:
11 <() as Foo<()>>
12 <() as Foo<u32>>
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.