]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/closure-requirements/propagate-from-trait-match.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / nll / closure-requirements / propagate-from-trait-match.stderr
CommitLineData
dfeec247 1note: external requirements
0731742a 2 --> $DIR/propagate-from-trait-match.rs:32:36
ff7c6d11 3 |
0531ce1d 4LL | establish_relationships(value, |value| {
ff7c6d11 5 | ____________________________________^
532ac7d7 6LL | |
0531ce1d
XL
7LL | |
8LL | | // This function call requires that
ff7c6d11 9... |
b7449926 10LL | | require(value);
0531ce1d 11LL | | });
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 22note: no external requirements
0731742a 23 --> $DIR/propagate-from-trait-match.rs:28:1
ff7c6d11 24 |
0531ce1d
XL
25LL | / fn supply<'a, T>(value: T)
26LL | | where
27LL | | T: Trait<'a>,
28LL | | {
ff7c6d11 29... |
0531ce1d
XL
30LL | | });
31LL | | }
ff7c6d11
XL
32 | |_^
33 |
60c5eb7d 34 = note: defining type: supply::<'_#1r, T>
ff7c6d11 35
b7449926 36error[E0309]: the parameter type `T` may not live long enough
0731742a 37 --> $DIR/propagate-from-trait-match.rs:32:36
b7449926
XL
38 |
39LL | establish_relationships(value, |value| {
40 | ____________________________________^
532ac7d7 41LL | |
b7449926
XL
42LL | |
43LL | | // This function call requires that
44... |
45LL | | require(value);
46LL | | });
47 | |_____^
48 |
dfeec247 49 = help: consider adding an explicit lifetime bound `T: 'a`...
b7449926 50
ff7c6d11
XL
51error: aborting due to previous error
52
0531ce1d 53For more information about this error, try `rustc --explain E0309`.