]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-86483.stderr
Provide suggestion for missing `>` in a type parameter list
[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    | |_^
15    |
16    = note: ...so that the type `T` will meet its required lifetime bounds...
17 note: ...that is required by this bound
18   --> $DIR/issue-86483.rs:7:16
19    |
20 LL |     for<'a> T: 'a,
21    |                ^^
22
23 error[E0311]: the parameter type `T` may not live long enough
24   --> $DIR/issue-86483.rs:9:5
25    |
26 LL | pub trait IceIce<T>
27    |                  - help: consider adding an explicit lifetime bound...: `T: 'a`
28 ...
29 LL |     type Ice<'v>: IntoIterator<Item = &'v T>;
30    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds...
31    |
32 note: ...that is required by this bound
33   --> $DIR/issue-86483.rs:7:16
34    |
35 LL |     for<'a> T: 'a,
36    |                ^^
37
38 error[E0309]: the parameter type `T` may not live long enough
39   --> $DIR/issue-86483.rs:9:32
40    |
41 LL |     type Ice<'v>: IntoIterator<Item = &'v T>;
42    |                                ^^^^^^^^^^^^ - help: consider adding a where clause: `where T: 'v`
43    |                                |
44    |                                ...so that the reference type `&'v T` does not outlive the data it points at
45
46 error: aborting due to 3 previous errors
47
48 For more information about this error, try `rustc --explain E0309`.