3 struct Obj<F> where F: FnMut() -> u32 {
16 fn deref(&self) -> &C {
25 let o = Obj { fn_ptr: empty, closure: || 42 };
27 p.closure(); //~ ERROR no method named `closure` found
29 q.fn_ptr(); //~ ERROR no method named `fn_ptr` found
30 let r = D(C { c_fn_ptr: empty });
32 s.c_fn_ptr(); //~ ERROR no method named `c_fn_ptr` found