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 21:05:03 +00:00
let x = Rc::new([1, 2, 3, 4]);
assert_eq!(*x, [1, 2, 3, 4]);
}