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

Multiple tuple structs naming inconsistency. #1097

Closed
cmester0 opened this issue Nov 4, 2024 · 1 comment
Closed

Multiple tuple structs naming inconsistency. #1097

cmester0 opened this issue Nov 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cmester0
Copy link
Collaborator

cmester0 commented Nov 4, 2024

The following code, results in incorrect names, as the _1 incrementation is not added to the concrete ident used in the constructor of tuple struct.

fn main(){
    {
        struct Cookie;
        let c = [Cookie, Cookie {}, Cookie, Cookie {}];
    }
    {
        struct Cookie {}
        const Cookie: Cookie = Cookie {};
        let c = [Cookie, Cookie {}, Cookie, Cookie {}];
    }
}

Open this code snippet in the playground

@franziskuskiefer franziskuskiefer added the bug Something isn't working label Nov 6, 2024
@W95Psp
Copy link
Collaborator

W95Psp commented Jan 30, 2025

This is fixed by #1199.

@W95Psp W95Psp closed this as completed Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants