]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-92033.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[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    |     -------------------------------------------------- definition of `TextureIter` from trait
6 ...
7 LL |     type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
8    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try copying this clause from the trait: `where Self: 'a`
9    |
10 note: type must outlive the lifetime `'a` as defined here
11   --> $DIR/issue-92033.rs:22:22
12    |
13 LL |     type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
14    |                      ^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0477`.