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
115 B
Rust
Raw Normal View History

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