Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
deref-rc.rs
blob: 9b4c63b1925654c75e6f3243c0406a006286e003 [
file
] [
log
] [
blame
]
// run-pass
use
std
::
rc
::
Rc
;
fn
main
()
{
let
x
=
Rc
::
new
([
1
,
2
,
3
,
4
]);
assert_eq
!(*
x
,
[
1
,
2
,
3
,
4
]);
}