]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/dropck-object-cycle.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / span / dropck-object-cycle.stderr
CommitLineData
7cac9316 1error[E0597]: `*m` does not live long enough
48663c56 2 --> $DIR/dropck-object-cycle.rs:27:31
c30ab7b3 3 |
0531ce1d 4LL | assert_eq!(object_invoke1(&*m), (4,5));
48663c56 5 | ^^^ borrowed value does not live long enough
c30ab7b3 6...
0531ce1d 7LL | }
48663c56
XL
8 | -
9 | |
10 | `*m` dropped here while still borrowed
1b1a35ee 11 | borrow might be used here, when `m` is dropped and runs the destructor for type `Box<dyn Trait<'_>>`
c30ab7b3 12
041b39d2 13error: aborting due to previous error
c30ab7b3 14
0531ce1d 15For more information about this error, try `rustc --explain E0597`.