1 error[E0477]: the type `&'s Texture` does not fulfill the required lifetime
2 --> $DIR/issue-92033.rs:20:28
4 LL | type TextureIter<'a>: Iterator<Item = &'a Texture>
5 | -------------------------------------------------- definition of `TextureIter` from trait
7 LL | type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 note: type must outlive the lifetime `'a` as defined here
11 --> $DIR/issue-92033.rs:20:22
13 LL | type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
15 help: copy the `where` clause predicates from the trait
17 LL | type TextureIter<'a> = std::option::IntoIter<&'a Texture> where Self: 'a;
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0477`.