Closed
Description
Given the following code:
fn main() {
let s = Some("hello", "world");
}
The current output is:
Compiling playground v0.0.1 (/playground)
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:2:13
|
2 | let s = Some("hello", "world");
| ^^^^ ------- ------- supplied 2 arguments
| |
| expected 1 argument
error: aborting due to previous error
For more information about this error, try `rustc --explain E0061`.
error: could not compile `playground`
Ideally the output should should say "struct" rather than function or better, suggest adding the missing (
instead since it is a tuple.