]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-move-drop.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / src / test / ui / unique / unique-move-drop.rs
1 // run-pass
2
3 #![allow(unused_variables)]
4
5 pub fn main() {
6     let i: Box<_> = Box::new(100);
7     let j: Box<_> = Box::new(200);
8     let j = i;
9     assert_eq!(*j, 100);
10 }