Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-30240-rpass.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
!()
}
}