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
I expected to see this happen: lifetime checking passed
Instead, this happened:
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
--> src/main.rs:39:17
|
38 | if let Err(e) = <F as Foo>::apply(arg) {
| ----------------------
| | |
| | first mutable borrow occurs here
| a temporary with access to the first borrow is created here ...
39 | e.apply(arg);
| ^^^ second mutable borrow occurs here
...
43 | }
| - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `std::result::Result<F<'_>, impl Bar>`
I tried this code:
I expected to see this happen: lifetime checking passed
Instead, this happened:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: