Open
Description
Code
let x: Vec::new();
Current output
error: return type notation arguments must be elided with `..`
--> src/main.rs:2:20
|
2 | let x: Vec::new();
| ^^ help: add `..`: `(..)`
error: return type notation not allowed in this position yet
--> src/main.rs:2:12
|
2 | let x: Vec::new();
| ^^^^^^^^^^
Rationale and extra context
This is a mistake where :
was used instead of =
. Instead of telling the user that it talks about rtn.
Rust Version
stable and latest nightly.
rustc 1.85.0-nightly (a2545fd6f 2024-11-28)
Anything else?
@rustbot label +D-invalid-suggestion