mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-16 06:56:23 +00:00
8 lines
257 B
Rust
8 lines
257 B
Rust
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)]`
|
|
}
|