You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LL | if let Ok(mut byte) = cell.try_borrow_mut() {
8
+
| ^^^^-----------------
9
+
| |
10
+
| borrowed value does not live long enough
11
+
| a temporary with access to the borrow is created here ...
12
+
...
13
+
LL | }
14
+
| -
15
+
| |
16
+
| `cell` dropped here while still borrowed
17
+
| ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Result<RefMut<'_, u8>, BorrowMutError>`
18
+
|
19
+
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
20
+
|
21
+
LL | };
22
+
| +
23
+
24
+
error: aborting due to 1 previous error
25
+
26
+
For more information about this error, try `rustc --explain E0597`.
0 commit comments