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