Sign in
fuchsia
/
third_party
/
rust
/
c38f75c21f016bffbf841ed5abce338f94201bde
/
.
/
tests
/
ui
/
deref-patterns
/
refs.rs
blob: c93e579bfd8049e87e263c4c800cb51957dde040 [
file
] [
log
] [
blame
]
//@ check-pass
#![
feature
(
string_deref_patterns
)]
fn
foo
(
s
:
&
String
)
->
i32
{
match
*
s
{
"a"
=>
42
,
_
=>
-
1
,
}
}
fn
bar
(
s
:
Option
<&&&&
String
>)
->
i32
{
match
s
{
Some
(&&&&
"&&&&"
)
=>
1
,
_
=>
-
1
,
}
}
fn
main
()
{}