fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.3 KiB53 linesraw
1note: external requirements
2  --> $DIR/propagate-from-trait-match.rs:32:36
3   |
4LL |       establish_relationships(value, |value| {
5   |  ____________________________________^
6LL | |
7LL | |
8LL | |         // This function call requires that
9...  |
10LL | |         require(value);
11LL | |     });
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
22note: no external requirements
23  --> $DIR/propagate-from-trait-match.rs:28:1
24   |
25LL | / fn supply<'a, T>(value: T)
26LL | | where
27LL | |     T: Trait<'a>,
28LL | | {
29...  |
30LL | |     });
31LL | | }
32   | |_^
33   |
34   = note: defining type: supply::<'_#1r, T>
35
36error[E0309]: the parameter type `T` may not live long enough
37  --> $DIR/propagate-from-trait-match.rs:32:36
38   |
39LL |       establish_relationships(value, |value| {
40   |  ____________________________________^
41LL | |
42LL | |
43LL | |         // This function call requires that
44...  |
45LL | |         require(value);
46LL | |     });
47   | |_____^
48   |
49   = help: consider adding an explicit lifetime bound `T: 'a`...
50
51error: aborting due to previous error
52
53For more information about this error, try `rustc --explain E0309`.