mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
8 lines
138 B
Rust
8 lines
138 B
Rust
// gate-test-string_deref_patterns
|
|
fn main() {
|
|
match String::new() {
|
|
"" | _ => {}
|
|
//~^ ERROR mismatched types
|
|
}
|
|
}
|