rust/tests/ui/deref-rc.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
114 B
Rust
Raw Normal View History

// run-pass
use std::rc::Rc;
fn main() {
2015-01-25 15:05:03 -06:00
let x = Rc::new([1, 2, 3, 4]);
assert_eq!(*x, [1, 2, 3, 4]);
}