resolve, inconsistent binding mode: tweak wording.
This commit is contained in:
parent
4ad6248825
commit
cc9aad452a
10 changed files with 74 additions and 74 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue