]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/nested-tait-inference.stderr
Rollup merge of #106732 - durin42:dmitrig-arrayref-ctor, r=nikic
[rust.git] / tests / ui / type-alias-impl-trait / nested-tait-inference.stderr
1 error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied
2   --> $DIR/nested-tait-inference.rs:12:13
3    |
4 LL | fn foo() -> impl Foo<FooX> {
5    |             ^^^^^^^^^^^^^^ the trait `Foo<FooX>` is not implemented for `()`
6 ...
7 LL |     ()
8    |     -- return type was inferred to be `()` here
9    |
10    = help: the trait `Foo<()>` is implemented for `()`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.