Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn moved_here(s: String) {
- println!("{}", s);
- }
- fn main() {
- let s = String::from("x");
- moved_here(s);
- println!("{}", s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement