syn icon indicating copy to clipboard operation
syn copied to clipboard

Parse default values in fields

Open dtolnay opened this issue 1 year ago • 0 comments

  • RFC: https://github.com/rust-lang/rfcs/pull/3681
  • Tracking issue: https://github.com/rust-lang/rust/issues/132162
  • Feature gate: #![feature(default_field_values)]
#[derive(Default)]
struct Pet {
    name: Option<String>,
    age: i128 = 42,
    //        ^^^^
}

dtolnay avatar Oct 29 '24 15:10 dtolnay