Tweak example formatting.

This commit is contained in:
Predrag Gruevski 2022-07-18 11:40:27 -04:00 committed by Eric Huss
parent fc77710e07
commit 08c4f92273

View File

@ -1180,8 +1180,9 @@ fn main() {
let bar_z = Bar::Z { a: 0 }; // Error: cannot create non-exhaustive variant using struct expression
let q = Quux::Var;
match q { // Error: non-exhaustive patterns: `_` not covered
match q {
Quux::Var => 0,
// Error: non-exhaustive patterns: `_` not covered
}
}
```