]> git.proxmox.com Git - rustc.git/blame - tests/ui/generic-associated-types/issue-90014-tait.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / generic-associated-types / issue-90014-tait.stderr
CommitLineData
fe692bf9 1error[E0308]: mismatched types
add651ee 2 --> $DIR/issue-90014-tait.rs:18:9
fe692bf9
FG
3 |
4LL | type Fut<'a> = impl Future<Output = ()>;
5 | ------------------------ the expected future
add651ee 6LL |
fe692bf9
FG
7LL | fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
8 | ------------- expected `Foo<'_>::Fut<'a>` because of return type
9LL | async { () }
10 | ^^^^^^^^^^^^ expected future, found `async` block
11 |
12 = note: expected opaque type `Foo<'_>::Fut<'a>`
781aab86 13 found `async` block `{async block@$DIR/issue-90014-tait.rs:18:9: 18:21}`
fe692bf9 14note: this item must have the opaque type in its signature in order to be able to register hidden types
add651ee 15 --> $DIR/issue-90014-tait.rs:17:8
fe692bf9
FG
16 |
17LL | fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
18 | ^^^^^^^^
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0308`.