rust/tests/ui/error-codes/E0057.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
125 B
Rust
Raw Normal View History

2016-05-19 07:00:43 -05:00
fn main() {
let f = |x| x * 3;
let a = f(); //~ ERROR E0057
let b = f(4);
let c = f(2, 3); //~ ERROR E0057
}