]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0599]: no method named `deref_ok` found for type `std::result::Result<{integer}, _>` in the current scope |
0731742a | 2 | --> $DIR/result-deref-ok.rs:4:27 |
b7449926 XL |
3 | | |
4 | LL | let _result = &Ok(42).deref_ok(); | |
5 | | ^^^^^^^^ | |
6 | | | |
7 | = note: the method `deref_ok` exists but the following trait bounds were not satisfied: | |
8 | `{integer} : std::ops::Deref` | |
9 | ||
10 | error: aborting due to previous error | |
11 | ||
12 | For more information about this error, try `rustc --explain E0599`. |