]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/dropck-object-cycle.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / span / dropck-object-cycle.stderr
1 error[E0597]: `*m` does not live long enough
2   --> $DIR/dropck-object-cycle.rs:27:31
3    |
4 LL |     assert_eq!(object_invoke1(&*m), (4,5));
5    |                               ^^^ borrowed value does not live long enough
6 ...
7 LL | }
8    | -
9    | |
10    | `*m` dropped here while still borrowed
11    | borrow might be used here, when `m` is dropped and runs the destructor for type `Box<dyn Trait<'_>>`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.