Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
binding
/
match-ref-unsized.rs
blob: 53784ebb9fcfcc82f7142fdf5f2442c44b4e1087 [
file
] [
log
] [
blame
]
// run-pass
// Binding unsized expressions to ref patterns
pub
fn
main
()
{
let
ref
a
=
*
"abcdef"
;
assert_eq
!(
a
,
"abcdef"
);
match
*
"12345"
{
ref
b
=>
{
assert_eq
!(
b
,
"12345"
)
}
}
}