fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0057]: this function takes 1 argument but 0 arguments were supplied 2 --> $DIR/E0057.rs:3:13 3 | 4LL | let a = f(); 5 | ^-- an argument is missing 6 | 7note: closure defined here 8 --> $DIR/E0057.rs:2:13 9 | 10LL | let f = |x| x * 3; 11 | ^^^ 12help: provide the argument 13 | 14LL | let a = f(/* x */); 15 | ~~~~~~~~~ 16 17error[E0057]: this function takes 1 argument but 2 arguments were supplied 18 --> $DIR/E0057.rs:5:13 19 | 20LL | let c = f(2, 3); 21 | ^ --- 22 | | | 23 | | unexpected argument of type `{integer}` 24 | help: remove the extra argument 25 | 26note: closure defined here 27 --> $DIR/E0057.rs:2:13 28 | 29LL | let f = |x| x * 3; 30 | ^^^ 31 32error: aborting due to 2 previous errors 33 34For more information about this error, try `rustc --explain E0057`.