]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0597]: `*m` does not live long enough |
48663c56 | 2 | --> $DIR/dropck-object-cycle.rs:27:31 |
c30ab7b3 | 3 | | |
0531ce1d | 4 | LL | assert_eq!(object_invoke1(&*m), (4,5)); |
48663c56 | 5 | | ^^^ borrowed value does not live long enough |
c30ab7b3 | 6 | ... |
0531ce1d | 7 | LL | } |
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 | 13 | error: aborting due to previous error |
c30ab7b3 | 14 | |
0531ce1d | 15 | For more information about this error, try `rustc --explain E0597`. |