Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#570·rust-by-practice

the second method is the same as the first one

Author: admacroCreated Oct 25, 2025Updated Oct 25, 2025

https://github.com/sunface/rust-by-practice/blob/e0e88e963a3d2c96029e1e3dca3397d38db78cab/solutions/ownership/ownership.md?plain=1#L186

the second method should be

rust
let (s1, s2) = &t;

Source: sunface/rust-by-practice

View original on GitHubView discussion on GitHub