Skip to content
New issue

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

vec!() does not handle a trailing comma #12910

Closed
lifthrasiir opened this issue Mar 15, 2014 · 0 comments
Closed

vec!() does not handle a trailing comma #12910

lifthrasiir opened this issue Mar 15, 2014 · 0 comments

Comments

@lifthrasiir
Copy link
Contributor

fn main() {
    println!("{}", vec!(1,2,3,).len());
}

gives the following error unlike the old syntax (~[1,2,3,]):

t.rs:2:30: 2:31 error: unexpected end of macro invocation
t.rs:2     println!("{}", vec!(1,2,3,).len());
                                    ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant