1//@check-pass 2 3// This code is expected to compile correctly. 4fn correct_borrowing() { 5 let x = String::new(); 6 let y = &x; 7 8 println!("{x}"); 9 println!("{y}"); 10} 11 12