]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-86483.stderr
Rollup merge of #88452 - xu-cheng:vecdeque-from-array, r=m-ou-se
[rust.git] / src / test / ui / generic-associated-types / issue-86483.stderr
1 error[E0311]: the parameter type `T` may not live long enough
2   --> $DIR/issue-86483.rs:5:1
3    |
4 LL |   pub trait IceIce<T>
5    |   ^                - help: consider adding an explicit lifetime bound...: `T: 'a`
6    |  _|
7    | |
8 LL | | where
9 LL | |     for<'a> T: 'a,
10 LL | | {
11 ...  |
12 LL | |
13 LL | | }
14    | |_^ ...so that the type `T` will meet its required lifetime bounds...
15    |
16 note: ...that is required by this bound
17   --> $DIR/issue-86483.rs:7:16
18    |
19 LL |     for<'a> T: 'a,
20    |                ^^
21
22 error[E0311]: the parameter type `T` may not live long enough
23   --> $DIR/issue-86483.rs:9:5
24    |
25 LL | pub trait IceIce<T>
26    |                  - help: consider adding an explicit lifetime bound...: `T: 'a`
27 ...
28 LL |     type Ice<'v>: IntoIterator<Item = &'v T>;
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds...
30    |
31 note: ...that is required by this bound
32   --> $DIR/issue-86483.rs:7:16
33    |
34 LL |     for<'a> T: 'a,
35    |                ^^
36
37 error[E0309]: the parameter type `T` may not live long enough
38   --> $DIR/issue-86483.rs:9:32
39    |
40 LL |     type Ice<'v>: IntoIterator<Item = &'v T>;
41    |                                ^^^^^^^^^^^^ - help: consider adding a where clause: `where T: 'v`
42    |                                |
43    |                                ...so that the reference type `&'v T` does not outlive the data it points at
44
45 error: aborting due to 3 previous errors
46
47 For more information about this error, try `rustc --explain E0309`.