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

Parser accepts and ignores arbitrary identifiers after tuple field name #59425

Closed
oli-obk opened this issue Mar 25, 2019 · 1 comment
Closed
Labels
A-parser Area: The parsing of Rust source code to an AST

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Mar 25, 2019

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

(Playground)

Output:

2

Errors:

   Compiling playground v0.0.1 (/playground)
    Finished dev [unoptimized + debuginfo] target(s) in 0.77s
     Running `target/debug/playground`

@oli-obk oli-obk added the A-parser Area: The parsing of Rust source code to an AST label Mar 25, 2019
@varkor
Copy link
Member

varkor commented Mar 26, 2019

Duplicate of #59418.

@varkor varkor closed this as completed Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area: The parsing of Rust source code to an AST
Projects
None yet
Development

No branches or pull requests

2 participants