summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/nested-tait-inference2.stderr
blob: f4d96038d9109419de8ee8b8e88459300e4f315c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 previous error

For more information about this error, try `rustc --explain E0277`.