]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / nested-tait-inference.stderr
index f98da9f7f920a60cad1430f09feac794a34b77ae..62db019ed6a911be95e49656292845be614d9206 100644 (file)
@@ -3,6 +3,9 @@ error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied
    |
 LL | fn foo() -> impl Foo<FooX> {
    |             ^^^^^^^^^^^^^^ the trait `Foo<FooX>` is not implemented for `()`
+...
+LL |     ()
+   |     -- return type was inferred to be `()` here
    |
    = help: the trait `Foo<()>` is implemented for `()`