]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-92033.stderr
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / ui / generic-associated-types / issue-92033.stderr
1 error[E0477]: the type `&'s Texture` does not fulfill the required lifetime
2   --> $DIR/issue-92033.rs:22:28
3    |
4 LL | /     type TextureIter<'a>: Iterator<Item = &'a Texture>
5 LL | |     where
6 LL | |         Self: 'a;
7    | |_________________- definition of `TextureIter` from trait
8 ...
9 LL |       type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
10    |                           -  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11    |                           |
12    |                           help: try copying this clause from the trait: `where Self: 'a`
13    |
14 note: type must outlive the lifetime `'a` as defined here
15   --> $DIR/issue-92033.rs:22:22
16    |
17 LL |     type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
18    |                      ^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0477`.