1 // Test that the resolve failure does not lead to downstream type errors.
6 fn closure<F, T>(x: F) -> Result<T, ()>
7 where F: FnMut() -> T, T: TheTrait,
12 fn foo() -> Result<(), ()> {
13 try!(closure(|| bar(0 as *mut _))); //~ ERROR cannot find function `bar` in this scope