fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
621 B13 linesraw
1error[E0599]: no method named `as_deref_mut` found for enum `std::option::Option<{integer}>` in the current scope
2  --> $DIR/option-as_deref_mut.rs:2:33
3   |
4LL |     let _result = &mut Some(42).as_deref_mut();
5   |                                 ^^^^^^^^^^^^ method not found in `std::option::Option<{integer}>`
6   |
7   = note: the method `as_deref_mut` exists but the following trait bounds were not satisfied:
8           `{integer}: std::ops::DerefMut`
9           `<{integer} as std::ops::Deref>::Target = _`
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0599`.