2023-10-15 06:20:06 -05:00
|
|
|
const CONST_STRING: String = String::new();
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let empty_str = String::from("");
|
|
|
|
if let CONST_STRING = empty_str {}
|
2023-09-26 02:39:41 -05:00
|
|
|
//~^ ERROR to use a constant of type `Vec<u8>` in a pattern, `Vec<u8>` must be annotated with `#[derive(PartialEq)]`
|
2023-10-15 06:20:06 -05:00
|
|
|
}
|