mirror of https://github.com/rust-lang/rust
15 lines
465 B
Plaintext
15 lines
465 B
Plaintext
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 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|