1 note: External requirements
2 --> $DIR/propagate-from-trait-match.rs:42:36
4 LL | establish_relationships(value, |value| {
5 | ____________________________________^
6 LL | | //~^ ERROR the parameter type `T` may not live long enough
8 LL | | // This function call requires that
10 LL | | require(value);
14 = note: defining type: DefId(0/1:16 ~ propagate_from_trait_match[317d]::supply[0]::{{closure}}[0]) with closure substs [
18 extern "rust-call" fn((T,))
20 = note: number of external vids: 2
21 = note: where T: '_#1r
23 note: No external requirements
24 --> $DIR/propagate-from-trait-match.rs:38:1
26 LL | / fn supply<'a, T>(value: T)
35 = note: defining type: DefId(0/0:6 ~ propagate_from_trait_match[317d]::supply[0]) with substs [
40 error[E0309]: the parameter type `T` may not live long enough
41 --> $DIR/propagate-from-trait-match.rs:42:36
43 LL | establish_relationships(value, |value| {
44 | ____________________________________^
45 LL | | //~^ ERROR the parameter type `T` may not live long enough
47 LL | | // This function call requires that
49 LL | | require(value);
53 = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
55 error: aborting due to previous error
57 For more information about this error, try `rustc --explain E0309`.