Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-18352.rs
blob: 5d93ed0646caa45e47ddd71af9ae2911d6e6a114 [
file
] [
log
] [
blame
]
// run-pass
const
X
:
&
'
static
str
=
"12345"
;
fn
test
(
s
:
String
)
->
bool
{
match
&*
s
{
X
=>
true
,
_
=>
false
}
}
fn
main
()
{
assert
!(
test
(
"12345"
.
to_string
()));
}