mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 10:19:00 +00:00
8 lines
206 B
Rust
8 lines
206 B
Rust
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
|
|
}
|