Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
pattern
/
issue-115599.rs
blob: 47fe6b87da94279db284b452673f6ad4aade24a3 [
file
] [
log
] [
blame
]
const
CONST_STRING
:
String
=
String
::
new
();
fn
main
()
{
let
empty_str
=
String
::
from
(
""
);
if
let
CONST_STRING
=
empty_str
{}
//~^ ERROR constant of non-structural type `Vec<u8>` in a pattern
}