rust-lang / reference

The Rust Reference
https://doc.rust-lang.org/nightly/reference/
Apache License 2.0
1.16k stars 452 forks source link

Mention Variadics With No Fixed Parameter #1494

Closed veera-sivarajan closed 2 days ago

veera-sivarajan commented 1 month ago

There's an open PR rust-lang/rust#124048 to support C23's variadics without a named parameter in Rust's extern blocks. Currently, it's waiting on approval from T-lang to get merged.

This PR removes the line "There must be at least one parameter before the variadic parameter" and adds an example to highlight that Rust supports variadics without any named parameters.

Opening this now so it can get merged if and when the implementation gets approved by T-lang.