summaryrefslogtreecommitdiffstats
path: root/src/test/ui/deref-rc.rs
blob: 9b4c63b1925654c75e6f3243c0406a006286e003 (plain)
1
2
3
4
5
6
7
8
// run-pass

use std::rc::Rc;

fn main() {
    let x = Rc::new([1, 2, 3, 4]);
    assert_eq!(*x, [1, 2, 3, 4]);
}