mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Tweak example formatting.
This commit is contained in:
parent
fc77710e07
commit
08c4f92273
@ -1180,8 +1180,9 @@ fn main() {
|
|||||||
let bar_z = Bar::Z { a: 0 }; // Error: cannot create non-exhaustive variant using struct expression
|
let bar_z = Bar::Z { a: 0 }; // Error: cannot create non-exhaustive variant using struct expression
|
||||||
|
|
||||||
let q = Quux::Var;
|
let q = Quux::Var;
|
||||||
match q { // Error: non-exhaustive patterns: `_` not covered
|
match q {
|
||||||
Quux::Var => 0,
|
Quux::Var => 0,
|
||||||
|
// Error: non-exhaustive patterns: `_` not covered
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user