]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-from-rptr-struct-error.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/object-lifetime-default-from-rptr-struct-error.rs:31:5
3    |
4 LL | fn c<'a>(t: &'a MyBox<Test+'a>, mut ss: SomeStruct<'a>) {
5    |      -- lifetime `'a` defined here
6 LL |     ss.t = t; //~ ERROR mismatched types
7    |     ^^^^^^^^ assignment requires that `'a` must outlive `'static`
8
9 error: aborting due to previous error
10