Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
issues
/
issue-30240.rs
blob: ab16614fd3084678ecd8c71ab8bc8cab8f0f86ec [
file
] [
log
] [
blame
]
// run-pass
fn
main
()
{
let
&
ref
a
=
&[
0i32
]
as
&[
_
];
assert_eq
!(
a
,
&[
0i32
]
as
&[
_
]);
let
&
ref
a
=
"hello"
;
assert_eq
!(
a
,
"hello"
);
match
"foo"
{
"fool"
=>
unreachable
!(),
"foo"
=>
{},
ref
_x
=>
unreachable
!()
}
}