summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref.rs
blob: 4232f14d2d3d821f14e3cecf1459ed66e85bd6a1 (plain)
1
2
3
4
fn main() {
    let _result = &Ok(42).as_deref();
//~^ ERROR the method
}