]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deref-rc.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[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 }