]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-67007-escaping-data.stderr
Rollup merge of #103146 - joboet:cleanup_pthread_condvar, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-67007-escaping-data.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-67007-escaping-data.rs:15:21
3    |
4 LL | impl<'tcx> Consumer<'tcx> {
5    |      ---- lifetime `'tcx` defined here
6 LL |     fn bad_method<'a>(&self, fcx: &FnCtxt<'a, 'tcx>) {
7    |                   -- lifetime `'a` defined here
8 LL |         let other = self.use_fcx(fcx);
9    |                     ^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'tcx`
10    |
11    = help: consider adding the following bound: `'a: 'tcx`
12
13 error: aborting due to previous error
14