]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-84931.stderr
Auto merge of #86860 - fee1-dead:stabilize, r=LeSeulArtichaut
[rust.git] / src / test / ui / generic-associated-types / issue-84931.stderr
1 error[E0309]: the parameter type `T` may not live long enough
2   --> $DIR/issue-84931.rs:15:21
3    |
4 LL |     type Item<'a> = &'a mut T;
5    |                  -  ^^^^^^^^^ ...so that the reference type `&'a mut T` does not outlive the data it points at
6    |                  |
7    |                  help: consider adding a where clause: `where T: 'a`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0309`.