]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/bugs/issue-86218.stderr
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / ui / generic-associated-types / bugs / issue-86218.stderr
1 error[E0477]: the type `impl Stream<Item = i32>` does not fulfill the required lifetime
2   --> $DIR/issue-86218.rs:22:28
3    |
4 LL |     type InnerStream<'s> = impl Stream<Item = i32> + 's;
5    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: type must outlive the lifetime `'s` as defined here as required by this binding
8   --> $DIR/issue-86218.rs:22:22
9    |
10 LL |     type InnerStream<'s> = impl Stream<Item = i32> + 's;
11    |                      ^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0477`.