]> git.proxmox.com Git - rustc.git/blame - src/test/ui/higher-rank-trait-bounds/issue-88586-hr-self-outlives-in-trait-def.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / higher-rank-trait-bounds / issue-88586-hr-self-outlives-in-trait-def.stderr
CommitLineData
a2a8927a
XL
1error[E0311]: the parameter type `Self` may not live long enough
2 --> $DIR/issue-88586-hr-self-outlives-in-trait-def.rs:6:1
3 |
4LL | / trait A where for<'a> Self: 'a
5LL | |
6LL | | {
7LL | | }
8 | |_^
9 |
10 = help: consider adding an explicit lifetime bound `Self: 'a`...
11 = note: ...so that the type `Self` will meet its required lifetime bounds...
12note: ...that is required by this bound
13 --> $DIR/issue-88586-hr-self-outlives-in-trait-def.rs:6:29
14 |
15LL | trait A where for<'a> Self: 'a
16 | ^^
17
18error: aborting due to previous error
19