]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.stderr
keep predicate order and tweak output
[rust.git] / src / test / ui / issues / issue-50264-inner-deref-trait / option-as_deref_mut.stderr
index 845ddb52319c722a043faa2f54e6e862ca0b3e15..f2133c8c84d21c542305d9674ba3bd8b66b39691 100644 (file)
@@ -1,11 +1,12 @@
-error[E0599]: no method named `as_deref_mut` found for type `std::option::Option<{integer}>` in the current scope
+error[E0599]: no method named `as_deref_mut` found for enum `std::option::Option<{integer}>` in the current scope
   --> $DIR/option-as_deref_mut.rs:2:33
    |
 LL |     let _result = &mut Some(42).as_deref_mut();
    |                                 ^^^^^^^^^^^^ method not found in `std::option::Option<{integer}>`
    |
    = note: the method `as_deref_mut` exists but the following trait bounds were not satisfied:
-           `{integer} : std::ops::DerefMut`
+           `{integer}: std::ops::DerefMut`
+           `<{integer} as std::ops::Deref>::Target = _`
 
 error: aborting due to previous error