Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
pattern
/
issue-115599.rs
blob: 7a222b90aec9749ea73cc9c7304579bcf0c19f09 [
file
] [
log
] [
blame
]
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, Eq)]`
}