]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.stderr
Give method not found a primary span label
[rust.git] / src / test / ui / issues / issue-50264-inner-deref-trait / option-as_deref_mut.stderr
1 error[E0599]: no method named `as_deref_mut` found for type `std::option::Option<{integer}>` in the current scope
2   --> $DIR/option-as_deref_mut.rs:4:33
3    |
4 LL |     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
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0599`.