]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-infer-paramd-indirect.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / regions / regions-infer-paramd-indirect.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/regions-infer-paramd-indirect.rs:33:9
3    |
4 LL | impl<'a> set_f<'a> for c<'a> {
5    |      -- lifetime `'a` defined here
6 ...
7 LL |     fn set_f_bad(&mut self, b: Box<b>) {
8    |                             - has type `std::boxed::Box<std::boxed::Box<&'1 isize>>`
9 LL |         self.f = b;
10    |         ^^^^^^ assignment requires that `'1` must outlive `'a`
11
12 error: aborting due to previous error
13