Skip to content

Commit

Permalink
Auto merge of rust-lang#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 authored and ehuss committed Nov 15, 2022
1 parent 6774bc1 commit e3daada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/src/reference/semver.md
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 e3daada

Please sign in to comment.