mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 09:44:40 +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
|
|
}
|
|
}
|