Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
pattern
/
usefulness
/
issue-30240-rpass.rs
blob: c8342295b9197b0de024c37adfbef1ca68c7e0b8 [
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
!()
}
}