]> git.lizzy.rs Git - rust.git/blob - tests/ui/deref-rc.rs
Auto merge of #106833 - JohnTitor:rollup-z8398jk, r=JohnTitor
[rust.git] / tests / 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 }