We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fn main() { println!("{}", vec!(1,2,3,).len()); }
gives the following error unlike the old syntax (~[1,2,3,]):
~[1,2,3,]
t.rs:2:30: 2:31 error: unexpected end of macro invocation t.rs:2 println!("{}", vec!(1,2,3,).len()); ^
The text was updated successfully, but these errors were encountered:
std: make vec!() macro handle a trailing comma
016a4b0
Fixes rust-lang#12910.
auto merge of #13278 : lifthrasiir/rust/vec-macro-with-trailing-comma…
b19e1b3
…, r=alexcrichton Fixes #12910.
7a28171
Successfully merging a pull request may close this issue.
gives the following error unlike the old syntax (
~[1,2,3,]
):The text was updated successfully, but these errors were encountered: