Skip to content

Commit

Permalink
Auto merge of #11332 - weihanglo:fix-semver-check, r=Muscraft
Browse files Browse the repository at this point in the history
fix(semver-check): adapt to a different error for variant not covered
  • Loading branch information
bors committed Nov 3, 2022
2 parents 810cbad + bc16cdb commit 2d70754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/src/reference/semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ pub enum E {
fn main() {
use updated_crate::E;
let x = E::Variant1;
match x { // Error: `Variant2` not covered
match x { // Error: `E::Variant2` not covered
E::Variant1 => {}
}
}
Expand Down

0 comments on commit 2d70754

Please sign in to comment.