blob: 62db019ed6a911be95e49656292845be614d9206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied
--> $DIR/nested-tait-inference.rs:12:13
|
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 `()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
|