summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-22468.rs
blob: 197a19c038c4bd502fe0d52a6bb21f28512967e3 (plain)
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
}