You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem:
The book suggest if we create a struct using .. operator with another struct then the previous struct cannot be used if it has data type that are moved by = assignment operator.
Suggested fix:
I am not really sure about the change as I am new to rust
The text was updated successfully, but these errors were encountered:
whym1here
changed the title
the struct update syntax uses = like an assignment; this is because it moves the data
ch05 01 Creating Instances From Other Instances With Struct Update Syntax
Aug 8, 2022
main
branch to see if this has already been fixedURL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struct-update-syntax
Description of the problem:
The book suggest if we create a struct using
..
operator with another struct then the previous struct cannot be used if it has data type that are moved by=
assignment operator.Suggested fix:
I am not really sure about the change as I am new to rust
The text was updated successfully, but these errors were encountered: