rustc/tests/ui/deref-patterns/gate.rs
2023-08-02 10:33:26 +02:00

8 lines
132 B
Rust

// gate-test-string_deref_patterns
fn main() {
match String::new() {
"" | _ => {}
//~^ mismatched types
}
}