]> git.proxmox.com Git - rustc.git/blob - src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.nll.stderr
New upstream version 1.30.0+dfsg1
[rustc.git] / src / test / ui / object-lifetime / object-lifetime-default-from-rptr-struct-error.nll.stderr
1 error: borrowed data escapes outside of function
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 | - `t` is a reference that is only valid in the function body
6 LL | ss.t = t; //~ ERROR mismatched types
7 | ^^^^^^^^ `t` escapes the function body here
8
9 error: aborting due to previous error
10