]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-92033.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / 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:20:28
3    |
4 LL |     type TextureIter<'a>: Iterator<Item = &'a Texture>
5    |     -------------------------------------------------- definition of `TextureIter` from trait
6 ...
7 LL |     type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
8    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9    |
10 note: type must outlive the lifetime `'a` as defined here
11   --> $DIR/issue-92033.rs:20:22
12    |
13 LL |     type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
14    |                      ^^
15 help: copy the `where` clause predicates from the trait
16    |
17 LL |     type TextureIter<'a> = std::option::IntoIter<&'a Texture> where Self: 'a;
18    |                                                               ++++++++++++++
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0477`.