mirror of https://github.com/rust-lang/rust
17 lines
534 B
Plaintext
17 lines
534 B
Plaintext
error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied
|
|
--> $DIR/nested-tait-inference2.rs:13:13
|
|
|
|
|
LL | fn foo() -> impl Foo<FooX> {
|
|
| ^^^^^^^^^^^^^^ the trait `Foo<FooX>` is not implemented for `()`
|
|
LL |
|
|
LL | ()
|
|
| -- return type was inferred to be `()` here
|
|
|
|
|
= help: the following other types implement trait `Foo<A>`:
|
|
<() as Foo<()>>
|
|
<() as Foo<u32>>
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|