rust/src/test/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
148 B
Rust
Raw Normal View History

2022-07-13 18:13:07 +00:00
// check-pass
#![feature(deref_patterns)]
fn main() {
match <_ as Default>::default() {
"" => (),
_ => unreachable!(),
}
}