]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-50264-inner-deref-trait / option-as_deref.stderr
CommitLineData
1b1a35ee 1error[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 |
4LL | 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
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0599`.