1error[E0311]: the parameter type `T` may not live long enough 2 --> $DIR/issue-86483.rs:5:1 3 | 4LL | pub trait IceIce<T> 5 | ^ - help: consider adding an explicit lifetime bound...: `T: 'a` 6 | _| 7 | | 8LL | | where 9LL | | for<'a> T: 'a, 10LL | | { 11... | 12LL | | 13LL | | } 14 | |_^ 15 | 16 = note: ...so that the type `T` will meet its required lifetime bounds... 17note: ...that is required by this bound 18 --> $DIR/issue-86483.rs:7:16 19 | 20LL | for<'a> T: 'a, 21 | ^^ 22 23error[E0311]: the parameter type `T` may not live long enough 24 --> $DIR/issue-86483.rs:9:5 25 | 26LL | pub trait IceIce<T> 27 | - help: consider adding an explicit lifetime bound...: `T: 'a` 28... 29LL | type Ice<'v>: IntoIterator<Item = &'v T>; 30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds... 31 | 32note: ...that is required by this bound 33 --> $DIR/issue-86483.rs:7:16 34 | 35LL | for<'a> T: 'a, 36 | ^^ 37 38error[E0309]: the parameter type `T` may not live long enough 39 --> $DIR/issue-86483.rs:9:32 40 | 41LL | 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 46error: aborting due to 3 previous errors 47 48For more information about this error, try `rustc --explain E0309`. 49