parent
025c328bf5
commit
aebd94fd3c
11 changed files with 5 additions and 45 deletions
|
|
@ -122,8 +122,6 @@ fields of the data structure are initialized with variables of the same
|
|||
names as the fields.
|
||||
|
||||
```
|
||||
#![feature(field_init_shorthand)]
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Person<'a> {
|
||||
name: &'a str,
|
||||
|
|
|
|||
|
|
@ -2825,7 +2825,6 @@ This allows a compact syntax with less duplication.
|
|||
Example:
|
||||
|
||||
```
|
||||
# #![feature(field_init_shorthand)]
|
||||
# struct Point3d { x: i32, y: i32, z: i32 }
|
||||
# let x = 0;
|
||||
# let y_value = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue