diff --git a/third_party/rust-by-example/destructuring-structs.rs b/third_party/rust-by-example/destructuring-structs.rs index 012588d2..21636e42 100644 --- a/third_party/rust-by-example/destructuring-structs.rs +++ b/third_party/rust-by-example/destructuring-structs.rs @@ -7,8 +7,8 @@ struct Foo { fn main() { let foo = Foo { x: (1, 2), y: 3 }; match foo { - Foo { x: (1, b), y } => println!("x.0 = 1, b = {b}, y = {y}"), Foo { y: 2, x: i } => println!("y = 2, x = {i:?}"), + Foo { x: (1, b), y } => println!("x.0 = 1, b = {b}, y = {y}"), Foo { y, .. } => println!("y = {y}, other fields were ignored"), } }