]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-after-move-based-on-type.rs
Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' into clippyup
[rust.git] / src / test / ui / use / use-after-move-based-on-type.rs
1 fn main() {
2     let x = "Hello!".to_string();
3     let _y = x;
4     println!("{}", x); //~ ERROR borrow of moved value
5 }