]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-trait-associated-type-region.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / wf / wf-trait-associated-type-region.stderr
CommitLineData
b7449926 1error[E0309]: the associated type `<Self as SomeTrait<'a>>::Type1` may not live long enough
94222f64 2 --> $DIR/wf-trait-associated-type-region.rs:9:18
b7449926
XL
3 |
4LL | type Type2 = &'a Self::Type1;
94222f64 5 | ^^^^^^^^^^^^^^^
b7449926
XL
6 |
7 = help: consider adding an explicit lifetime bound `<Self as SomeTrait<'a>>::Type1: 'a`...
f9f354fc 8 = note: ...so that the reference type `&'a <Self as SomeTrait<'a>>::Type1` does not outlive the data it points at
b7449926
XL
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0309`.