Closed
Description
#![feature(fn_traits)]
fn main() {
let closure = || { 3 };
closure.call_once();
}
becomes:
Compiling playground v0.0.1 (file:///playground)
error[E0061]: this function takes 1 parameter but 0 parameters were supplied
--> src/main.rs:18:13
|
18 | closure.call_once();
| ^^^^^^^^^
|
help: expected the unit value `()`. You can create one with a pair of parenthesis
|
18 | closure.call_onc()e();
|
playground link: https://play.rust-lang.org/?gist=c18a4d629e72869e75a7a3b747b8de83&version=nightly