]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deref-rc.rs
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
[rust.git] / src / test / ui / deref-rc.rs
1 // run-pass
2
3 use std::rc::Rc;
4
5 fn main() {
6     let x = Rc::new([1, 2, 3, 4]);
7     assert_eq!(*x, [1, 2, 3, 4]);
8 }