blob: a77333a7568168d0f5a05e7f73989f355eaf3bd7 [file] [log] [blame]
error[E0599]: no method named `deref_ok` found for type `std::result::Result<{integer}, _>` in the current scope
--> $DIR/result_deref_ok.rs:14:27
|
LL | let _result = &Ok(42).deref_ok();
| ^^^^^^^^
|
= note: the method `deref_ok` exists but the following trait bounds were not satisfied:
`{integer} : std::ops::Deref`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.