]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-autoderef-index.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[rust.git] / src / test / ui / unique / unique-autoderef-index.rs
1 // run-pass
2
3 pub fn main() {
4     let i: Box<_> = Box::new(vec![100]);
5     assert_eq!((*i)[0], 100);
6 }