1 2 3 4 5 6 7 8 9
fn main() { let foo = "bar"; let x = foo("baz"); //~^ ERROR: expected function, found `&str` } fn foo(file: &str) -> bool { true }