Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
pattern
/
issue-115599.rs
blob: 1521d728d95619a2fc204636a1ba88e45f9e4915 [
file
] [
log
] [
blame
] [
edit
]
const
CONST_STRING
:
String
=
String
::
new
();
fn
main
()
{
let
empty_str
=
String
::
from
(
""
);
if
let
CONST_STRING
=
empty_str
{}
//~^ ERROR to use a constant of type `Vec<u8>` in a pattern, `Vec<u8>` must be annotated with `#[derive(PartialEq)]`
}