summaryrefslogtreecommitdiffstats
path: root/tests/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.stderr
blob: 7d6f9f39d13ed278f4bbab199300d749fd7c5acd (plain)
1
2
3
4
5
6
7
8
9
10
error: lifetime may not live long enough
  --> $DIR/object-lifetime-default-from-rptr-box-error.rs:15:5
   |
LL | fn c<'a>(t: &'a Box<dyn Test+'a>, mut ss: SomeStruct<'a>) {
   |      -- lifetime `'a` defined here
LL |     ss.t = t;
   |     ^^^^^^^^ assignment requires that `'a` must outlive `'static`

error: aborting due to previous error