]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-92033.stderr
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[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    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try copying this clause from the trait: `where Self: 'a`
11    |
12 note: type must outlive the lifetime `'a` as defined here
13   --> $DIR/issue-92033.rs:22:22
14    |
15 LL |     type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
16    |                      ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0477`.