rust/tests/ui/box/unit/unique-in-vec.rs

7 lines
121 B
Rust

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