]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-autoderef-field.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / unique / unique-autoderef-field.rs
1 // run-pass
2
3 struct J { j: isize }
4
5 pub fn main() {
6     let i: Box<_> = Box::new(J {
7         j: 100
8     });
9     assert_eq!(i.j, 100);
10 }