summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/unit/unique-autoderef-index.rs
blob: ea6598a7f6b351518f14366724a0c48f016f6b2e (plain)
1
2
3
4
5
6
// run-pass

pub fn main() {
    let i: Box<_> = Box::new(vec![100]);
    assert_eq!((*i)[0], 100);
}