rust/tests/ui/deref-patterns/gate.rs

8 lines
132 B
Rust
Raw Normal View History

2022-11-11 08:31:07 -06:00
// gate-test-string_deref_patterns
2022-07-05 02:42:19 -05:00
fn main() {
match String::new() {
"" | _ => {}
//~^ mismatched types
}
}