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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
132 B
Rust
Raw Normal View History

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