summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0057.rs
blob: 83f941f65b9884ffaec7fe2af4e545bda0ae23f9 (plain)
1
2
3
4
5
6
fn main() {
    let f = |x| x * 3;
    let a = f(); //~ ERROR E0057
    let b = f(4);
    let c = f(2, 3); //~ ERROR E0057
}