1
Fork 0

resolve, inconsistent binding mode: tweak wording.

This commit is contained in:
Mazdak Farrokhzad 2020-03-04 03:58:52 +01:00
parent 4ad6248825
commit cc9aad452a
10 changed files with 74 additions and 74 deletions

View file

@ -4,7 +4,7 @@ pub fn main() {
let x = &Some((3, 3));
let _: &i32 = match x {
Some((x, 3)) | &Some((ref x, 5)) => x,
//~^ ERROR is bound in inconsistent ways
//~^ ERROR is bound inconsistently
_ => &5i32,
};
}

View file

@ -1,4 +1,4 @@
error[E0409]: variable `x` is bound in inconsistent ways within the same match arm
error[E0409]: variable `x` is bound inconsistently across alternatives separated by `|`
--> $DIR/issue-44912-or.rs:6:35
|
LL | Some((x, 3)) | &Some((ref x, 5)) => x,