rust/tests/ui/box/unit/unique-in-vec.rs
2024-02-16 20:02:50 +00:00

7 lines
122 B
Rust

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