mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
6 lines
119 B
Rust
6 lines
119 B
Rust
fn main() {
|
|
let x = "Hello!".to_string();
|
|
let _y = x;
|
|
println!("{}", x); //~ ERROR borrow of moved value
|
|
}
|