about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/issue-90014-tait.stderr
blob: fffe5b93e5a985b9657751fc1153b30b33dbb7c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error: unconstrained opaque type
  --> $DIR/issue-90014-tait.rs:15:20
   |
LL |     type Fut<'a> = impl Future<Output = ()>;
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `Fut` must be used in combination with a concrete type within the same impl

error[E0308]: mismatched types
  --> $DIR/issue-90014-tait.rs:18:9
   |
LL |     type Fut<'a> = impl Future<Output = ()>;
   |                    ------------------------ the expected future
LL |
LL |     fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
   |                                  ------------- expected `Foo<'_>::Fut<'a>` because of return type
LL |         async { () }
   |         ^^^^^^^^^^^^ expected future, found `async` block
   |
   = note: expected opaque type `Foo<'_>::Fut<'a>`
            found `async` block `{async block@$DIR/issue-90014-tait.rs:18:9: 18:14}`

error: aborting due to 2 previous errors

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