error[E0277]: the trait bound `(): Foo` is not satisfied --> $DIR/nested-tait-inference2.rs:13:13 | LL | fn foo() -> impl Foo { | ^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()` | = help: the following implementations were found: <() as Foo<()>> <() as Foo> error[E0277]: the trait bound `(): Foo` is not satisfied --> $DIR/nested-tait-inference2.rs:13:28 | LL | fn foo() -> impl Foo { | ____________________________^ LL | | LL | | LL | | () LL | | } | |_^ the trait `Foo` is not implemented for `()` | = help: the following implementations were found: <() as Foo<()>> <() as Foo> error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0277`.