1 2 3 4 5 6
pub fn test() { foo(|_|) //~ ERROR expected expression, found `)` //~^ ERROR cannot find function `foo` in this scope } fn main() { }