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

Parse default values in fields #1774

Open
dtolnay opened this issue Oct 29, 2024 · 0 comments
Open

Parse default values in fields #1774

dtolnay opened this issue Oct 29, 2024 · 0 comments
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Oct 29, 2024

RFC: rust-lang/rfcs#3681

#[derive(Default)]
struct Pet {
    name: Option<String>,
    age: i128 = 42,
    //        ^^^^
}
@dtolnay dtolnay added the syntax label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant