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

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