2021-12-31 21:55:34 +00:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/issue-67007-escaping-data.rs:15:21
|
2021-10-03 20:25:26 +00:00
|
|
|
|
|
|
|
|
LL | impl<'tcx> Consumer<'tcx> {
|
|
|
|
| ---- lifetime `'tcx` defined here
|
|
|
|
LL | fn bad_method<'a>(&self, fcx: &FnCtxt<'a, 'tcx>) {
|
2021-12-31 21:55:34 +00:00
|
|
|
| -- lifetime `'a` defined here
|
2021-10-03 20:25:26 +00:00
|
|
|
LL | let other = self.use_fcx(fcx);
|
2021-12-31 21:55:34 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'tcx`
|
2021-10-03 20:25:26 +00:00
|
|
|
|
|
|
|
|
= help: consider adding the following bound: `'a: 'tcx`
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-10-03 20:25:26 +00:00
|
|
|
|