summary refs log tree commit diff
path: root/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.nll.stderr
blob: fe3b21fa39c57381118da02fb55161840649eec2 (plain)
1
2
3
4
5
6
7
8
9
10
error: lifetime may not live long enough
  --> $DIR/object-lifetime-default-from-rptr-struct-error.rs:21:5
   |
LL | fn c<'a>(t: &'a MyBox<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