rust/tests/ui/deref-patterns/default-infer.rs

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

10 lines
155 B
Rust
Raw Normal View History

2022-07-13 13:13:07 -05:00
// check-pass
2022-11-11 08:31:07 -06:00
#![feature(string_deref_patterns)]
2022-07-13 13:13:07 -05:00
fn main() {
match <_ as Default>::default() {
"" => (),
_ => unreachable!(),
}
}