]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0599]: no method named `as_deref` found for enum `Option<{integer}>` in the current scope |
e74abb32 | 2 | --> $DIR/option-as_deref.rs:2:29 |
416331ca XL |
3 | | |
4 | LL | let _result = &Some(42).as_deref(); | |
ba9703b0 | 5 | | ^^^^^^^^ help: there is an associated function with a similar name: `as_ref` |
416331ca XL |
6 | | |
7 | = note: the method `as_deref` exists but the following trait bounds were not satisfied: | |
1b1a35ee XL |
8 | `{integer}: Deref` |
9 | `<{integer} as Deref>::Target = _` | |
416331ca XL |
10 | |
11 | error: aborting due to previous error | |
12 | ||
13 | For more information about this error, try `rustc --explain E0599`. |