rust/tests/ui/unique/unique-in-vec.rs
2023-01-11 09:32:08 +00:00

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));
}