summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-infer-paramd-indirect.stderr
blob: afabdc1de1c7d9502689713ed154563cf73e11ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: lifetime may not live long enough
  --> $DIR/regions-infer-paramd-indirect.rs:22:9
   |
LL | impl<'a> SetF<'a> for C<'a> {
   |      -- lifetime `'a` defined here
...
LL |     fn set_f_bad(&mut self, b: Box<B>) {
   |                             - has type `Box<Box<&'1 isize>>`
LL |         self.f = b;
   |         ^^^^^^ assignment requires that `'1` must outlive `'a`

error: aborting due to previous error