We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 512f122 commit 2451c2dCopy full SHA for 2451c2d
src/doc/src/reference/semver.md
@@ -1141,15 +1141,15 @@ pub struct Foo {
1141
}
1142
1143
pub enum Bar {
1144
- Baz,
1145
-}
1146
-
1147
-pub enum Quux {
1148
X,
1149
Y(usize),
1150
Z { a: usize },
1151
1152
+pub enum Quux {
+ Var,
+}
+
1153
///////////////////////////////////////////////////////////
1154
// After
1155
#[non_exhaustive]
@@ -1183,7 +1183,7 @@ fn main() {
1183
match q {
1184
Quux::Var => 0,
1185
// Error: non-exhaustive patterns: `_` not covered
1186
- }
+ };
1187
1188
```
1189
0 commit comments