]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/bugs/issue-89008.stderr
remove [async output] from impl Future
[rust.git] / src / test / ui / generic-associated-types / bugs / issue-89008.stderr
1 error[E0271]: type mismatch resolving `<impl Future as Future>::Output == impl Stream<Item = Repr>`
2   --> $DIR/issue-89008.rs:39:43
3    |
4 LL |     type LineStream<'a, Repr> = impl Stream<Item = Repr>;
5    |                                 ------------------------ the expected opaque type
6 ...
7 LL |     fn line_stream<'a, Repr>(&'a self) -> Self::LineStreamFut<'a, Repr> {
8    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected opaque type, found struct `Empty`
9    |
10    = note: expected opaque type `impl Stream<Item = Repr>`
11                    found struct `Empty<_>`
12
13 error: could not find defining uses
14   --> $DIR/issue-89008.rs:35:33
15    |
16 LL |     type LineStream<'a, Repr> = impl Stream<Item = Repr>;
17    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0271`.