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