]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.nll.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-from-rptr-struct-error.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/object-lifetime-default-from-rptr-struct-error.rs:21:5
3    |
4 LL | fn c<'a>(t: &'a MyBox<dyn Test+'a>, mut ss: SomeStruct<'a>) {
5    |      -- lifetime `'a` defined here
6 LL |     ss.t = t;
7    |     ^^^^^^^^ assignment requires that `'a` must outlive `'static`
8    |
9    = help: consider replacing `'a` with `'static`
10
11 error: aborting due to previous error
12