#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::cell::Cell; fn main() { let mut array: [i32; 3] = [1, 2, 3]; let cell_array: &Cell<[i32; 3]> = Cell::from_mut(&mut array); let array_cell: &[Cell; 3] = cell_array.as_array_of_cells(); }