]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/nested-tait-inference2.stderr
Rollup merge of #95709 - nnethercote:improve-terse-test-output, r=Dylan-DPC
[rust.git] / src / test / ui / type-alias-impl-trait / nested-tait-inference2.stderr
1 error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied
2   --> $DIR/nested-tait-inference2.rs:13:13
3    |
4 LL | fn foo() -> impl Foo<FooX> {
5    |             ^^^^^^^^^^^^^^ the trait `Foo<FooX>` is not implemented for `()`
6    |
7    = help: the following other types implement trait `Foo<A>`:
8              <() as Foo<()>>
9              <() as Foo<u32>>
10
11 error[E0277]: the trait bound `(): Foo<FooX>` is not satisfied
12   --> $DIR/nested-tait-inference2.rs:13:28
13    |
14 LL |   fn foo() -> impl Foo<FooX> {
15    |  ____________________________^
16 LL | |
17 LL | |
18 LL | |     ()
19 LL | | }
20    | |_^ the trait `Foo<FooX>` is not implemented for `()`
21    |
22    = help: the following other types implement trait `Foo<A>`:
23              <() as Foo<()>>
24              <() as Foo<u32>>
25
26 error: aborting due to 2 previous errors
27
28 For more information about this error, try `rustc --explain E0277`.