Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
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
()));
}