]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | note: external requirements |
0731742a | 2 | --> $DIR/propagate-from-trait-match.rs:32:36 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | establish_relationships(value, |value| { |
ff7c6d11 | 5 | | ____________________________________^ |
532ac7d7 | 6 | LL | | |
0531ce1d XL |
7 | LL | | |
8 | LL | | // This function call requires that | |
ff7c6d11 | 9 | ... | |
b7449926 | 10 | LL | | require(value); |
0531ce1d | 11 | LL | | }); |
ff7c6d11 XL |
12 | | |_____^ |
13 | | | |
1b1a35ee | 14 | = note: defining type: supply::<'_#1r, T>::{closure#0} with closure substs [ |
ff7c6d11 | 15 | i32, |
532ac7d7 | 16 | extern "rust-call" fn((T,)), |
ba9703b0 | 17 | (), |
ff7c6d11 | 18 | ] |
b7449926 | 19 | = note: number of external vids: 2 |
ff7c6d11 XL |
20 | = note: where T: '_#1r |
21 | ||
dfeec247 | 22 | note: no external requirements |
0731742a | 23 | --> $DIR/propagate-from-trait-match.rs:28:1 |
ff7c6d11 | 24 | | |
0531ce1d XL |
25 | LL | / fn supply<'a, T>(value: T) |
26 | LL | | where | |
27 | LL | | T: Trait<'a>, | |
28 | LL | | { | |
ff7c6d11 | 29 | ... | |
0531ce1d XL |
30 | LL | | }); |
31 | LL | | } | |
ff7c6d11 XL |
32 | | |_^ |
33 | | | |
60c5eb7d | 34 | = note: defining type: supply::<'_#1r, T> |
ff7c6d11 | 35 | |
b7449926 | 36 | error[E0309]: the parameter type `T` may not live long enough |
0731742a | 37 | --> $DIR/propagate-from-trait-match.rs:32:36 |
b7449926 XL |
38 | | |
39 | LL | establish_relationships(value, |value| { | |
40 | | ____________________________________^ | |
532ac7d7 | 41 | LL | | |
b7449926 XL |
42 | LL | | |
43 | LL | | // This function call requires that | |
44 | ... | | |
45 | LL | | require(value); | |
46 | LL | | }); | |
47 | | |_____^ | |
48 | | | |
dfeec247 | 49 | = help: consider adding an explicit lifetime bound `T: 'a`... |
b7449926 | 50 | |
ff7c6d11 XL |
51 | error: aborting due to previous error |
52 | ||
0531ce1d | 53 | For more information about this error, try `rustc --explain E0309`. |